Tag: r

53 votes
18 answers
3K views
Include CSS,javascript file in Yii Framework

How to include a Javascript or CSS file in Yii Framework? I want to create a page on my site that has a littl

avatar
Rudy
0 1 0 9
asked 07 September, 2021
56 votes
8 answers
446 views
Yii2 data provider default sorting

In Yii 1.1 this code works for default sorting: $dataProvider = new CActiveDataProvider('article',a

avatar
Roger
0 1 0 9
asked 07 September, 2021
65 votes
8 answers
502 views
Websocket transport reliability (Socket.io data loss during reconnection)

Used NodeJS, Socket.io Problem Imagine there are 2 users U1 & U2, connected to an app via Socket.io. Th

avatar
Winford
0 1 0 9
asked 07 September, 2021
64 votes
3 answers
1.5K views
Why is there no same-origin policy for WebSockets? Why can I connect to ws://localhost?

I'd like to use WebSockets for inter-process communication for my application (Daemon<->WebGUI and

avatar
Shantay
0 1 0 9
asked 07 September, 2021
49 votes
5 answers
1.5K views
Sending message to a specific connected users using webSocket?

I wrote a code for broadcasting a message to all users: // websocket and http servers var webSocketServer = re

avatar
Xavier
0 1 0 9
asked 07 September, 2021
61 votes
5 answers
2.3K views
Creating a "Hello World" WebSocket example

I don't understand why I cannot make the following code work. I want to connect with JavaScript to my ser

avatar
Solomon
0 1 0 9
asked 07 September, 2021
50 votes
2 answers
1.2K views
What is difference between grpc and websocket? Which one is more suitable for bidirectional streaming connection?

I want to develop a client-server application in a bi-directional streaming manner. what is more suitable tec

avatar
Stacia
0 1 0 9
asked 07 September, 2021
56 votes
3 answers
1.5K views
Faye vs. Socket.IO (and Juggernaut)

Socket.IO seems to be the most popular and active WebSocket emulation library. Juggernaut uses it to create a

avatar
Lorenzo
0 1 0 9
asked 07 September, 2021
59 votes
6 answers
2.3K views
How to create websockets server in PHP

I am looking for a simple code to create a WebSocket server. I found phpwebsockets but it is outdated now and

avatar
Gigi
0 1 0 9
asked 07 September, 2021
65 votes
8 answers
2.8K views
How to construct a WebSocket URI relative to the page URI?

I want to construct a WebSocket URI relative to the page URI at the browser side. Say, in my case convert HTTP

avatar
Thurman
0 1 0 9
asked 07 September, 2021
60 votes
6 answers
2.3K views
getting the reason why websockets closed with close code 1006

I would like to get the reason websockets closed, so I can show the right message to the user. I have sok.on

avatar
Alba
0 1 0 9
asked 07 September, 2021
60 votes
1 answers
2K views
Differences between websockets and long polling for turn based game server

I am writing a server for an iOS game. The game is turn-based and the only time the server needs to push infor

avatar
Karolyn
0 1 0 9
asked 07 September, 2021
56 votes
12 answers
1.9K views
WebSockets and Apache proxy : how to configure mod_proxy_wstunnel?

I have : Apache (v2.4) on port 80 of my server for www.domain1.com, with mod_proxy and mod_proxy_wstunnel ena

avatar
Serina
0 1 0 9
asked 07 September, 2021
58 votes
7 answers
2.4K views
WebSocket: How to automatically reconnect after it dies

var ws = new WebSocket('ws://localhost:8080'); ws.onopen = function () { ws.send(JSON.stringify({

avatar
Sydney
0 1 0 9
asked 07 September, 2021
53 votes
3 answers
1.4K views
Loadbalancing web sockets

I have a question about how to load balance web sockets. I have a server which supports web sockets. Browsers

avatar
Ali
0 1 0 9
asked 07 September, 2021
61 votes
5 answers
1.9K views
How can I get the sha1 hash of a string in node.js?

I'm trying to create a websocket server written in node.js To get the server to work I need to get the S

avatar
Luis
0 1 0 9
asked 07 September, 2021
61 votes
6 answers
2.3K views
Closing WebSocket correctly (HTML5, Javascript)

I am playing around with HTML5 WebSockets. I was wondering, how do I close the connection gracefully? Like, wh

avatar
Frederick
0 1 0 9
asked 07 September, 2021
67 votes
4 answers
1.3K views
My Understanding of HTTP Polling, Long Polling, HTTP Streaming and WebSockets

I have read many posts on SO and the web regarding the keywords in my question title and learned a lot from th

avatar
Stacia
0 1 0 9
asked 07 September, 2021
67 votes
3 answers
1K views
Sending websocket ping/pong frame from browser

I keep reading about ping/pong messages in websockets to keep the connection alive, but I'm not sure what

avatar
Stacia
0 1 0 9
asked 07 September, 2021
63 votes
12 answers
1.4K views
Send message to specific client with socket.io and node.js

I'm working with socket.io and node.js and until now it seems pretty good, but I don't know how to s

avatar
Frederick
0 1 0 9
asked 07 September, 2021