Discuss Scratch
- Discussion Forums
- » Developing Scratch Extensions
- » CloudLink - A powerful websocket extension
- MikeDEV
- Scratcher
1000+ posts
CloudLink - A powerful websocket extension
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.
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
Thanks, my changes fixed my issue that I was having with starting the websocket server. It now works great and I'm loving CloudLinkI made a fork of the example server code and I keep getting this error__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.
- 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
That's an extension sandbox limit. I don't think that limit exists if you use Adacraft since it's in the extension library. 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.
Last edited by samq64 (Oct. 27, 2021 12:08:46)
- tnix100
- Scratcher
500+ posts
CloudLink - A powerful websocket extension
Wow thanks! It works amazingly well on Adacraft so I'm probably just gonna make my project on there now.That's an extension sandbox limit. I don't think that limit exists if you use Adacraft since it's in the extension library. 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.
- 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
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.
- CoderQC
- Scratcher
100+ posts
CloudLink - A powerful websocket extension
Something's wrong
This is not a problem with CloudLink. Maybe try not using the Microsoft Store version of Python and Well it was working amazingly but now whenever a client on Adacraft connects, this error shows updownload python here instead.
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
- windowscj
- Scratcher
100+ posts
CloudLink - A powerful websocket extension
I already made a server test that demonstrates multi-thread and single thread. Try using that. 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.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
<<[] < []> < []>
- tnix100
- Scratcher
500+ posts
CloudLink - A powerful websocket extension
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! Something's wrongThis is not a problem with CloudLink. Maybe try not using the Microsoft Store version of Python and Well it was working amazingly but now whenever a client on Adacraft connects, this error shows updownload python here instead.
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
- silvxrcat
- Scratcher
500+ posts
CloudLink - A powerful websocket extension
use replit that's how i made my server
- tnix100
- Scratcher
500+ posts
CloudLink - A powerful websocket extension
that's how i made my serverReplit has it's server in the US, I live in New Zealand. So I get around 400ms latency to their servers. use replit
- 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.
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
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
RIP assets image hosting. 2013?-2023
- MikeDEV
- Scratcher
1000+ 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.
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.
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.
- Discussion Forums
- » Developing Scratch Extensions
- » CloudLink - A powerful websocket extension