r/websocket • u/derberq • Apr 16 '21
r/websocket • u/Jimbly7 • Sep 30 '13
Efficient Load Balancing and SSL Termination for WebSockets and Node.js
r/websocket • u/derberq • Apr 21 '21
Creating AsyncAPI for WebSocket API - Step by Step aka WebSocket API Design
r/websocket • u/Cazhero • Nov 29 '20
Tips on how to start with websockets (java)
Hi I'm trying to learn how websockets work. Previously I've only done CRUD operations with axios call from java springboot backend to react.js frontend. But now I want to implement websockets for an entity, are there any tips on how to approach this? Most tutorials I've seen have a chat-app, but I can't seem to imagine how that would work for an app where you just create read update and delete "a thing".
r/websocket • u/yetti • Feb 19 '13
NGINX Announces Support for WebSocket Protocol
r/websocket • u/derberq • Sep 24 '21
The journey of documenting a Socket.IO AP
r/websocket • u/youcancallmejim • Aug 24 '21
Is websocket.org down
I am very new to websockets and I have been following along with some tutorials, that use the websocket.org service. The website says service is no longer available. Can someone suggest another server I could use to test and learn.
Thanks
r/websocket • u/Shashikant_Mane • Dec 06 '20
How to build a Real-Time Messaging App using Diffusion
Real-Time Messaging
Introduction to Diffusion Real-Time Messaging through a simple application using Diffusion Cloud.
A set of simple projects, illustrating production and consumption of messages to and from a Diffusion Cloud instance.
These JavaScript code examples enable users to interact in real-time across various rooms or topics. You can also use other programming languages from our SDKs, including iOS, Android, C, .NET, and more.
Lesson 1: Publish and Subscribe to Topics
Lesson 1 code example introduces the concept of Publish and Subscribe to ‘Topics’ (data structures). In Diffusion, data is stored and distributed through Topics.
Lesson 2: Time Series Topics
Lesson 2 code example introduces the concept of Time Series topic to hold a historical sequence of events. Time series topics are useful for collaborative applications such as chat rooms. Multiple users can concurrently update a time series topic.
Lesson 3: Security
Lesson 3 code example introduces the concept of Security by requiring sessions to authenticate and use role-based authorization to define the actions that a client can perform.
Pre-requisites
Download our code examples or clone them to your local environment:
git clone https://github.com/pushtechnology/tutorials/
A Diffusion service (Cloud or On-Premise), version 6.5.0 or greater. Create a service here.
📷
Follow our Quick Start Guide and get your service up in a minute!
r/websocket • u/hishnash • May 02 '20
Exposing a Django REST-like API over a WebSocket Connection
r/websocket • u/[deleted] • Sep 22 '17
Websocket: The Foundation Of Realtime Web Apps
r/websocket • u/Professor0007 • Nov 28 '22
Is it a good approach to emit socket events every second infinitely from Server?
I am building a system on the MERN stack (auction site).
the products of auction has following functionalities:
after some specified time by admin ,the added product of auction gets expired.
synchronized time for all users
when some one bids, time of product resets.
To achieve all this i am continuously emitting products times from backend (nodejs) using web sockets and set Interval (which triggers every second)
Is it bad approach?
Will it eventually slow down backend server ?
Thanks in Advance.
r/websocket • u/mohitus88 • Aug 11 '22
Running websocket is slowing down my browser tab
So i am using websocket to get data every second. Initially it is fine and no issues to my browser tab. After few seconds the slow activity of that particular tab starts showing. Like opening the inspect tab takes time. When navigating to "element" tab in inspect mode also takes time. But if i get the data once and stop the websocket and try working on that tab its all smooth. really need help to tackle the issue. The page whenever i visit becomes so damn slow over time thats its annoying.
r/websocket • u/hishnash • Feb 02 '22
Cleora: WebSocket testing and documentation client app. Open Free Beta (macOS, iOS, iPadOS)
r/websocket • u/AblyRealtime • Jan 11 '22
The WebSocket Handbook: learn about the technology behind the realtime web [Share your feedback!]
Hey r/Websocket!
We’ve used our extensive knowledge of WebSockets to write the definitive resource about the technology that opened the door to a truly realtime web: The Websocket Handbook.
We'd love to get your feedback on the handbook, and understand what people's experience is with WebSockets in general, including common pain points or interesting applications that you want to share, and what else you'd like to learn!
r/websocket • u/woodsman752 • Aug 10 '21
Handshake failed due to invalid Connection header
I'm trying make a websocket connection from my SockJS/StompJS (Angular code) to my Spring Boot Server. Many of the calls are working, but the "CONNECT" frame fails with
"Handshake failed due to invalid Connection header [keep-alive]"I don't know if this is an error in the client side or the server side.
My request headers are:
[upgrade:"websocket", cache-control:"no-cache", pragma:"no-cache", sec-fetch-site:"same-origin", sec-fetch-mode:"websocket", sec-fetch-dest:"websocket", cookie:"_dvp=0:knao8n9x:ueQI\~8QHCJCZqEz1PKsFuAFqAuwmUdWO; connect.sid=s%3A2ryrcdEBuVaF79TFLHxLwBCujmFe8tZU.vWZJofM6LiUPG6PvX%2F%2BPOlQ6EcN%2F80RZsMJohXHOiPE; 368b7883bb173c2e7ce35c0973392d07=0816943ee1359cee78b63cb442c24aaa; _dvs=0:ks3kd6yz:_JycjgNvlPotyM6ti0Zuc_r4ZOnlHvdP", connection:"keep-alive", sec-websocket-key:"gacROp/JOtopW1hGAr41eg==", sec-websocket-extensions:"permessage-deflate", origin:"[https://localhost:8081](https://localhost:8081)", sec-websocket-version:"13", accept-encoding:"gzip, deflate, br", accept-language:"en-US,en;q=0.5", accept:"\*/\*", user-agent:"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:90.0) Gecko/20100101 Firefox/90.0", host:"localhost:8081", authorization:"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzcHJpbnQtbWlkZGxld2FyZS1pc3N1ZXIiLCJzdWIiOiJCZW4uUHJhY2h0MUBpYm0uY29tIiwibm90ZXNJZCI6IkJlbiBQcmFjaHQiLCJzZXJpYWxOdW0iOiI4Njc1NTU4OTciLCJleHAiOjE2Mjg2Mjg5MTQsImJsdWVHcm91cHMiOlsiQkxVRUNPU1RfU1BSRUFEU0hFRVRfVVBMT0FEX1RFU1QiXSwiaWF0IjoxNjI4NjIyMjk1fQ.2wwpB3iB90B7e9mBfjfsZi1xn8duzbMa2FpgD50qQiI"]Client side snippet
onChooseBlueReportFile(files: FileList) {
console.log('@@@ onChooseBlueReportFile');
this.blueReportSelected = true;
this.blueReportFileName = files.item(0).name;
this.blueReportFile = files.item(0);
const pattern = /\d*[0-9]+[.]+\d{3}[0-9]$/;
if (this.blueReportFileName == null || this.blueReportFileName == 'No file selected') {
this.displayUploadBlueReportsError("No file selected.Please select one.");
} else {
this.errorBlueReport = false;
}
if (!this.errorBlueReport) {
this.showLoaderBlueReport = true;
var headers = {
};
const socket = new SockJS('https://localhost:8081/rules/ws');
var stompClient = Stomp.over(socket);
var costFileClient = stompClient;
if(costFileClient!=null) {
console.log('@@@ costFileClient not null');
} else {
console.log('@@@ costFileClient is null');
}
console.log('Before webService connect');
var send_file = function(stompClient, input) {
console.log('Start of send_file');
let file = input.files[0];
read_file(file, (result => {
console.log('Start of send_file lambda');
stompClient.send('/topic/softlayer-cost-file', { 'content-type': 'application/octet-stream' }, result)
console.log('End of send_file lambda');
}))
console.log('End of send_file');
};
console.log('After send_file declaration');
var read_file = function (file, result) {
const reader = new FileReader()
reader.onload = function(e) {
var arrayBuffer = reader.result;
}
reader.readAsArrayBuffer(file)
};
console.log('After read_file declaration');
var success_function = function(message) {
console.log('Success '+message);
};
var error_function = function(message) {
console.log('Error '+message);
};
costFileClient.debug = function (str) {
console.log('StompClient debug: '+str);
};
const _this = this;
let isConnected = false;
costFileClient.connect(headers,
/* Connect Callback */
function(frame) {
console.log('@@ Connected: '+frame);
isConnected = true;
if(!files || files.length==0) {
console.log('@@ No files selected');
} else {
send_file(costFileClient,files);
costFileClient.subscribe("/topic/softlayer-cost-file",
/* Subscribe Callback */
function(data) {
console.log('Incoming response from send: '+data);
_this.softLayerCostFilePercentUploaded=data;
}
);
}
costFileClient.disconnect();
},
/* Connect Error Callback*/
function(error) {
console.log('@@@ Error on connect: ' + error);
}
);
console.log('After webService connect');
}
}r/websocket • u/Iam_cool_asf • Feb 27 '21
What is your opinion about using websockets for infinite scrolling ?
r/websocket • u/mihairotaru • Feb 16 '21
The logistical challenge to deliver a web notification to every inhabitant of the planet
r/websocket • u/mihairotaru • Dec 09 '20
Extending Kafka to Web and Mobile Users over WebSockets
New solution for streaming Apache Kafka messages to millions of web and mobile users over WebSockets. Built on top of MigratoryData, a web messaging technology addressing the C10M problem - handling 10 million concurrent WebSockets connections from a single commodity server.
r/websocket • u/Hywan • Oct 17 '19
Firefox’s New WebSocket Inspector – Mozilla Hacks - the Web developer blog
r/websocket • u/stvaccount • Apr 14 '19
Is there a database that offers websocket access?
I want to use websockets to connect to a database. Any database that already has a pluging for this usecase?
r/websocket • u/Speightrex • Jul 11 '17
Beginner help?
I have no programming background.
I'm attempting to connect to a cryptocurrency exchange via their websocket api, are there any easy to use guides that can walk me through this?
r/websocket • u/realstevejobs • Mar 26 '13