r/websocket • • Jan 18 '23

Web Socket

0 Upvotes

how to clean pusher peak connection count? pls


r/websocket • • Jun 13 '19

WebSockets vs Long Polling

Thumbnail
ably.io
2 Upvotes

r/websocket • • Feb 01 '23

WebSocket Server Help Needed

0 Upvotes

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 • • Feb 24 '23

As gorilla websocket has been archived which library can we use?

Thumbnail
github.com
0 Upvotes

r/websocket • • Feb 24 '23

As gorilla websocket has been archived which library can we use?

0 Upvotes

github.com/gorilla/websocket

As gorilla websocket has been archived which library can we use?


r/websocket • • Oct 27 '21

Anyone out there know where I can find code for a python websocket?

0 Upvotes

r/websocket • • Jan 29 '14

Creating a Web Chat with Webix and WebSocket API

Thumbnail
webix.com
0 Upvotes

r/websocket • • Dec 08 '22

I Launched A "Software Development As A Service" Product

Thumbnail self.saas
0 Upvotes

r/websocket • • Sep 20 '22

Confuse where to put Websocket server & client?

0 Upvotes

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 • • May 31 '21

Laravel Project And Required Libraries Installation - Real-Time Chat Application Course With Laravel, VueJs & Websocket

Thumbnail
youtube.com
0 Upvotes

r/websocket • • Jun 06 '21

5. Including Basic Setup for JWT Authentication - RealTime Chat Application Course - Laravel, VueJs

Thumbnail
youtube.com
0 Upvotes

r/websocket • • Nov 10 '17

Top 10 Worthwhile Uses of WebSockets

Thumbnail
pushfyi.com
0 Upvotes

r/websocket • • Sep 08 '21

Building a Realtime Gamification Feature that Scales to Millions of Devices using MigratoryData, Kafka, and WebSockets: A look at Watch’N Play Interactive Game

0 Upvotes

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.

Building a Realtime Gamification Feature that Scales to Millions of Devices using MigratoryData, Kafka, and WebSockets: A look at Watch’N Play Interactive Game


r/websocket • • Sep 06 '21

Say hello to PieSocket

0 Upvotes

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 • • Apr 02 '21

Logger

0 Upvotes

Any recommendations? I need to log and store data locally.


r/websocket • • May 14 '20

Whats a good WebSocket Node Package for the Backend? for building a a Chat App from scratch?

0 Upvotes

Whats a good WebSocket Node Package for the Backend? for building a Chat App from scratch?


r/websocket • • Oct 26 '17

WebSocket offers a new approach to Web development

Thumbnail
techrepublic.com
0 Upvotes

r/websocket • • Jul 13 '20

Need simple websocket solution in WinForms - ideally vb.net

1 Upvotes

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 • • Sep 18 '19

Spring Boot WebSocket Angular 8 Gradle Example

Thumbnail
roytuts.com
0 Upvotes

r/websocket • • Aug 28 '20

ionic websockets

1 Upvotes

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 • • Oct 13 '20

How to stream Kafka messages to Internet-facing clients over WebSockets

Thumbnail
ably.io
1 Upvotes

r/websocket • • May 14 '21

sono.io | A new Deno library for WebSocket/WebRTC

Thumbnail self.deno
1 Upvotes

r/websocket • • Feb 09 '21

Websocket API design

2 Upvotes

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 • • Sep 02 '20

WebSockets - A Conceptual Deep Dive | Ably Realtime

Thumbnail
ably.io
2 Upvotes