Discuss Scratch

hasanegetumtas
Scratcher
10 posts

CloudLink - A powerful websocket extension

move (30) steps
MikeDEV
Scratcher
1000+ posts

CloudLink - A powerful websocket extension

hasanegetumtas wrote:

move (30) steps

Please refrain from sending offtopic posts to threads.

I have left Scratch! Goodbye everyone, I'll remember you all in therapy.
If you want to ever get in contact with me again, please visit my Github instead.
Also, if you need to, you can contact me via Meower. You'll know where to look.
tnix100
Scratcher
500+ posts

CloudLink - A powerful websocket extension

MikeDEV wrote:

tnix100 wrote:

I made a fork of the example server code and I keep getting this error

CloudLink v0.1.5.1 wrote:

__init__() got multiple values for argument ‘host’

I've tried looking through the source code for CloudLink to see if there's a way I can easily fix it, but I'm not too good with API wrappers…

I haven't experienced this error in any build I've worked on. I'll test the code soon and give you more info later.

Edit: Merged, I see no issues with your code.
Thanks, my changes fixed my issue that I was having with starting the websocket server. It now works great and I'm loving CloudLink
tnix100
Scratcher
500+ posts

CloudLink - A powerful websocket extension

Is there any way to speed up CloudLink? Currently there's like a 100-300ms delay between sending and receiving. I want to be able to make a multiplayer game through CloudLink so I want it to be able to send and receive packets quite fast.
samq64
Scratcher
1000+ posts

CloudLink - A powerful websocket extension

tnix100 wrote:

Is there any way to speed up CloudLink? Currently there's like a 100-300ms delay between sending and receiving. I want to be able to make a multiplayer game through CloudLink so I want it to be able to send and receive packets quite fast.
That's an extension sandbox limit. I don't think that limit exists if you use Adacraft since it's in the extension library.

Last edited by samq64 (Oct. 27, 2021 12:08:46)

tnix100
Scratcher
500+ posts

CloudLink - A powerful websocket extension

samq64 wrote:

tnix100 wrote:

Is there any way to speed up CloudLink? Currently there's like a 100-300ms delay between sending and receiving. I want to be able to make a multiplayer game through CloudLink so I want it to be able to send and receive packets quite fast.
That's an extension sandbox limit. I don't think that limit exists if you use Adacraft since it's in the extension library.
Wow thanks! It works amazingly well on Adacraft so I'm probably just gonna make my project on there now.
tnix100
Scratcher
500+ posts

CloudLink - A powerful websocket extension

Well it was working amazingly but now whenever a client on Adacraft connects, this error shows up

Python wrote:

Exception occurred during processing of request from ('127.0.0.1', 53364)
Traceback (most recent call last):
File “C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.9_3.9.2032.0_x64__qbz5n2kfra8p0\lib\socketserver.py”, line 683, in process_request_thread
self.finish_request(request, client_address)
File “C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.9_3.9.2032.0_x64__qbz5n2kfra8p0\lib\socketserver.py”, line 360, in finish_request
self.RequestHandlerClass(request, client_address, self)
File “C:\Users\Tnix\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\Python39\site-packages\websocket_server\websocket_server.py”, line 227, in __init__
StreamRequestHandler.__init__(self, socket, addr, server)
File “C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.9_3.9.2032.0_x64__qbz5n2kfra8p0\lib\socketserver.py”, line 747, in __init__
self.handle()
File “C:\Users\Tnix\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\Python39\site-packages\websocket_server\websocket_server.py”, line 238, in handle
self.handshake()
File “C:\Users\Tnix\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\Python39\site-packages\websocket_server\websocket_server.py”, line 384, in handshake
headers = self.read_http_headers()
File “C:\Users\Tnix\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\Python39\site-packages\websocket_server\websocket_server.py”, line 372, in read_http_headers
http_get = self.rfile.readline().decode().strip()
UnicodeDecodeError: ‘utf-8’ codec can't decode byte 0xfc in position 8: invalid start byte

Last edited by tnix100 (Oct. 28, 2021 01:56:00)

CoderQC
Scratcher
100+ posts

CloudLink - A powerful websocket extension

So much is possible with Cloud Link by itself. I've already made an engine that can get the presence of a user with other projects using the engine. I'll be able to expand it into a multiplayer system. That multiplayer system would be a recreation of Xbox Live entirely.

when green flag clicked
Follow [CoderQC]
stop [this script v]

Check out my new website!
CoderQC
Scratcher
100+ posts

CloudLink - A powerful websocket extension

Something's wrong

tnix100 wrote:

Well it was working amazingly but now whenever a client on Adacraft connects, this error shows up

Python wrote:

Exception occurred during processing of request from ('127.0.0.1', 53364)
Traceback (most recent call last):
File “C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.9_3.9.2032.0_x64__qbz5n2kfra8p0\lib\socketserver.py”, line 683, in process_request_thread
self.finish_request(request, client_address)
File “C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.9_3.9.2032.0_x64__qbz5n2kfra8p0\lib\socketserver.py”, line 360, in finish_request
self.RequestHandlerClass(request, client_address, self)
File “C:\Users\Tnix\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\Python39\site-packages\websocket_server\websocket_server.py”, line 227, in __init__
StreamRequestHandler.__init__(self, socket, addr, server)
File “C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.9_3.9.2032.0_x64__qbz5n2kfra8p0\lib\socketserver.py”, line 747, in __init__
self.handle()
File “C:\Users\Tnix\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\Python39\site-packages\websocket_server\websocket_server.py”, line 238, in handle
self.handshake()
File “C:\Users\Tnix\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\Python39\site-packages\websocket_server\websocket_server.py”, line 384, in handshake
headers = self.read_http_headers()
File “C:\Users\Tnix\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\Python39\site-packages\websocket_server\websocket_server.py”, line 372, in read_http_headers
http_get = self.rfile.readline().decode().strip()
UnicodeDecodeError: ‘utf-8’ codec can't decode byte 0xfc in position 8: invalid start byte
This is not a problem with CloudLink. Maybe try not using the Microsoft Store version of Python and download python here instead.

when green flag clicked
Follow [CoderQC]
stop [this script v]

Check out my new website!
windowscj
Scratcher
100+ posts

CloudLink - A powerful websocket extension

CoderQC wrote:

So much is possible with Cloud Link by itself. I've already made an engine that can get the presence of a user with other projects using the engine. I'll be able to expand it into a multiplayer system. That multiplayer system would be a recreation of Xbox Live entirely.
I already made a server test that demonstrates multi-thread and single thread. Try using that. https://github.com/TermOfficial/cloudlink-multithread-example

hey
Last updated: 02/11/24
hasanegetumtas
Scratcher
10 posts

CloudLink - A powerful websocket extension

when green flag clicked
<<[] < []> < []>
silvxrcat
Scratcher
500+ posts

CloudLink - A powerful websocket extension

hasanegetumtas wrote:

when green flag clicked
<<[] < []> < []>
no blockspam pls thank of you


hi im silver

























i eat orphan babies
tnix100
Scratcher
500+ posts

CloudLink - A powerful websocket extension

CoderQC wrote:

Something's wrong

tnix100 wrote:

Well it was working amazingly but now whenever a client on Adacraft connects, this error shows up

Python wrote:

Exception occurred during processing of request from ('127.0.0.1', 53364)
Traceback (most recent call last):
File “C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.9_3.9.2032.0_x64__qbz5n2kfra8p0\lib\socketserver.py”, line 683, in process_request_thread
self.finish_request(request, client_address)
File “C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.9_3.9.2032.0_x64__qbz5n2kfra8p0\lib\socketserver.py”, line 360, in finish_request
self.RequestHandlerClass(request, client_address, self)
File “C:\Users\Tnix\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\Python39\site-packages\websocket_server\websocket_server.py”, line 227, in __init__
StreamRequestHandler.__init__(self, socket, addr, server)
File “C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.9_3.9.2032.0_x64__qbz5n2kfra8p0\lib\socketserver.py”, line 747, in __init__
self.handle()
File “C:\Users\Tnix\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\Python39\site-packages\websocket_server\websocket_server.py”, line 238, in handle
self.handshake()
File “C:\Users\Tnix\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\Python39\site-packages\websocket_server\websocket_server.py”, line 384, in handshake
headers = self.read_http_headers()
File “C:\Users\Tnix\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\Python39\site-packages\websocket_server\websocket_server.py”, line 372, in read_http_headers
http_get = self.rfile.readline().decode().strip()
UnicodeDecodeError: ‘utf-8’ codec can't decode byte 0xfc in position 8: invalid start byte
This is not a problem with CloudLink. Maybe try not using the Microsoft Store version of Python and download python here instead.
Whenever I use the normal version of Python in Visual Studio Code it says to just use the Microsoft Store one. Also I got the problem fixed, I'm not sure how I did it since it's been a while but it's working just fine now!
silvxrcat
Scratcher
500+ posts

CloudLink - A powerful websocket extension

use replit that's how i made my server


hi im silver

























i eat orphan babies
tnix100
Scratcher
500+ posts

CloudLink - A powerful websocket extension

silvxrcat wrote:

use replit that's how i made my server
Replit has it's server in the US, I live in New Zealand. So I get around 400ms latency to their servers.
tnix100
Scratcher
500+ posts

CloudLink - A powerful websocket extension

Does CloudLink require a secure connection if the IP isn't ‘localhost’?
I've been trying to host a server on Azure since I have some credit but I can't seem to be able to connect, in fact I can't connect to any IP apart from ‘localhost’ (and the other variants that lead to my local machine) unless it's a WSS (secure websocket server) connection.
oolapoo
Scratcher
10 posts

CloudLink - A powerful websocket extension

How access with no website? Is it on Scratch lab? (Click here)

Last edited by oolapoo (Nov. 6, 2021 03:23:34)


play sound [Its me v]
say [Please Follow me] for (60) secs
move (10000) steps

oolapoo
Scratcher
10 posts

CloudLink - A powerful websocket extension


play sound [Its me v]
say [Please Follow me] for (60) secs
move (10000) steps

CST1229
Scratcher
1000+ posts

CloudLink - A powerful websocket extension

oolapoo wrote:

Is it on Scratch lab?
No.

oolapoo wrote:

Don't spam.

Last edited by CST1229 (Nov. 6, 2021 06:03:00)


This is a signature. It's a piece of text that appears below every post I write. Click here to learn more, including how to make your own.
RIP assets image hosting. 2013?-2023



MikeDEV
Scratcher
1000+ posts

CloudLink - A powerful websocket extension

tnix100 wrote:

Does CloudLink require a secure connection if the IP isn't ‘localhost’?
I've been trying to host a server on Azure since I have some credit but I can't seem to be able to connect, in fact I can't connect to any IP apart from ‘localhost’ (and the other variants that lead to my local machine) unless it's a WSS (secure websocket server) connection.

Yes, this is a browser limitation. Nowadays all browsers (if not, a large majority) will block connections to insecure servers when the current page has been loaded over a secure connection. The only exception browsers will have is insecure access to the localhost.

I have left Scratch! Goodbye everyone, I'll remember you all in therapy.
If you want to ever get in contact with me again, please visit my Github instead.
Also, if you need to, you can contact me via Meower. You'll know where to look.

Powered by DjangoBB