r/websocket • u/Automatic_Bid8853 • Jan 18 '23
Web Socket
how to clean pusher peak connection count? pls
r/websocket • u/Automatic_Bid8853 • Jan 18 '23
how to clean pusher peak connection count? pls
r/websocket • u/GasOutrageous9972 • Feb 01 '23
Hi Everyone!
Some of the posts on here are really great!
Im a noob here and in the field of what I'm trying to do too. I have started to create a multiplayer game but it was using short polling and I don't think that is going to be best long term.
After completing a basic POC I started to rebuild and decided to use websockets as a solution.
I'm running a virtual private Linux server from Ionos Plesk is installed I have created a subdirectory called server in httpdocs which is where the app.js file is for server creation. Port 8080 is open Im using http/ws for now before I attempt to go near https/wss I have enabled NodeJS on the server and set up the following as config:
Document Root: /httpdocs/server
Application URL: http://[my.url]
Application Root /httpdocs/server
Application Startup File app.js
The app.js contains:
var Msg = ''; var WebSocketServer = require('ws').Server , wss = new WebSocketServer({port: 8080}); wss.on('connection', function(ws) { ws.on('message', function(message) { console.log('Received from client: %s', message); ws.send('Server received from client: ' + message); }); }); On any web page that loads on that domain I now get an error stating 'Upgrade Required' error 426 I know that means the server wants the client to upgrade to websockets but I cant understand why the client isn't asking to upgrade back.. In my ws_test.html file I access to test the connection this is the code in the HTML body:
<script> let socket = new WebSocket("ws://[my.url]/server/app.js"); socket.onopen = function(e) { alert("[open] Connection established"); alert("Sending to server"); socket.send("TEST SUCCESSFUL"); }; </script> I have tried so many different things and come to the end of my tether.. I have changed the connection URL many times and the ports. I suspect NGINX may have something to do with it but I tried disabling proxy and no change.
Can anyone see any glaringly obvoius mistakes!?
Thanks SO SO much for just reading this any help will be hugely appreciated.
I have tried so many different things and come to the end of my tether.. I have changed the connection URL many times and the ports. I suspect NGINX may have something to do with it but I tried disabling proxy and no change.
Can anyone see any glaringly obvoius mistakes!?
Thanks SO SO much for just reading this any help will be hugely appreciated.
r/websocket • u/Ok_Bee5275 • Feb 24 '23
r/websocket • u/Ok_Bee5275 • Feb 24 '23
github.com/gorilla/websocket
As gorilla websocket has been archived which library can we use?
r/websocket • u/Tiny-Bridge-2106 • Oct 27 '21
r/websocket • u/kelluvuus • Jan 29 '14
r/websocket • u/sudoanand • Dec 08 '22
r/websocket • u/encoder- • Sep 20 '22
I have couple of Raspberry pi and i wish to get some statue (temp ,up-time, ...) out of them and display these info's in my simple angular application in real-time. My basic search lead me to use Websocket for this task
Each of my Pi's has a static IP address on the network BUT my angular app doesn't.
So my first thought is to setup a websocket server in each Pi and let angular to connect as wesocket client (in this case I have to know and store all my Pi's IP address in angular)
Is this best solution for this setup?
r/websocket • u/KhojastehVF • May 31 '21
r/websocket • u/KhojastehVF • Jun 06 '21
r/websocket • u/mihairotaru • Sep 08 '21
Here is how to create a realtime gamification feature using MigratoryData, Kafka, and WebSockets that scales vertically up to one million concurrent users and scales horizontally in a linear fashion, with a shared-nothing clustering architecture, by simply adding more instances to the cluster.
r/websocket • u/sudoanand • Sep 06 '21
If you are building with WebSocket, you will like my project piesocket.com.
It has a online websocket tester and it is a growing community of 1500+ members.
: https://piesocket.com/websocket-tester
Hope I am not breaking any rules, let me know if so.
r/websocket • u/elvezisdead • Apr 02 '21
Any recommendations? I need to log and store data locally.
r/websocket • u/ritinpali • May 14 '20
Whats a good WebSocket Node Package for the Backend? for building a Chat App from scratch?
r/websocket • u/[deleted] • Oct 26 '17
r/websocket • u/Xanhasht • Jul 13 '20
I need my Windows desktop app to connect to an api via a socket. The api has a very simple setup.
Basically they just need the URL and command JSON.
Then they return data as JSON.
They have two types of return. One is a single JSON block and the other is streaming data that continues until I tell it to stop.
I've spent HOURS searching for a way to do this. I'm very good with Visual Basic and reasonably familiar with vb.net. I've never done anything in C#, but I can usually understand what I'm reading.
Most solutions I've found appear to use asp or xamarin. I can't find anything for Winforms except for code that seems way too complex for my needs.
Can anyone offer some guidance? I'd prefer vb.net, but will take c# of that's all that's available.
r/websocket • u/soumitraroy • Sep 18 '19
r/websocket • u/akr98 • Aug 28 '20
Does web socket work the same way in ionic for angular as they do for angular web sites? I have a website that creates a websocket and fetches notifications that get displayed on the webpage.
I am trying to mimic the same in a mobile app using ionic and want to know if websocket will do the job of fetching notifications considering an app might not having a webdriver to load a websocket every time like a webpage does.
r/websocket • u/Ramirond • Oct 13 '20
r/websocket • u/Big_Vulva • May 14 '21
r/websocket • u/[deleted] • Feb 09 '21
Hi All
I cannot find any sort of RFC or any standards describing Websockets in general, I wanted to setup routes and responses for a websocket application which may have a few conversations between client and server (e.g. message a, get message ack back, then b and so on)
Any suggestions?
r/websocket • u/dominikelmiger • Sep 02 '20