websocket

WebSocket in Django

I started working with websockets for the first time in my life and this error occurred. I have already used the tips to inst ... l" async def websocket_view(socket): await socket.accept() await socket.send_text('hello') await socket.close()

Events are not listened to in the connection socket.io and socket. io-client, Nodejs, Angular

Hello everyone. The code I wrote is the Server server.js const app = require('express'); const server = require('http').creat ... he other emit, on, different events, kliekn does not see, it feels like on, emit do not do anything at all, maybe who knows?)

How to read wss: / / stream in php without libraries (streaming api vk)

The vk Streaming api allows you to receive events from all over the vk, and this is implemented via the wss: / / protocol. A ... ($socket)) { $context = fgets($socket, 1024); print_r($context); } fclose($socket);

How to organize an app on socket.io, node.js

I'm going to write an application in node.js using socket.io. All the examples that I have seen on the Internet are quite sim ... neral, the question is: how to properly organize an application using socket.io large enough to hold everything in one file.

Python websocket parsing

I have a link to the site: wss://stream295.forexpros.com/echo/479/huv_c91t/websocket wss://stream198.forexpros.com/echo/465/8zo98wk6/websocket How to parse data from these sockets using python c?

How to create a web socket client in C#?

I have a server in php and a WebSocket client in js in the browser. How to create a connection socket with the same server in C# via the tcp protocol? I use the standard library System. Net. WebSockets.

Mini chat for a simple website: AJAX or WebSocket?

I want to make a chat. The project is small, there will be no special loads. Which is better to use, websockets or ajax? I'm leaning towards ajax because of the ease of implementation, let me?

Console chat in Python. Implementation of registration in the chat

I ask for your advice. I want to implement a simple chat in python with one condition-registration of "chat participants". ( ... print(text_from_client) continue server_socket.sendto(data, client) Thank you for your advice.

What is the okhttp3 error and how can I fix it?

I'm trying to implement such a thing: there is a file selected via filepicker, I translate it into a string and send it to th ... d what affects the file size. Maybe someone had a similar problem and he fixed it, I would be grateful for any information :)

Why C# TcpListener loads the CPU

Making a bundle of C# TcpListner + JS Websocket. The connection is established, the data is transmitted. The problem is that ... { log("DISCONNECTED"); }; socket.onerror = function(error) { log("[error]"+error.message); }; }

Why does the websocket connection in the JS-PHP bundle fall off when transmitting audio from the microphone?

I'm trying to see the possibilities of transmitting streaming data online via websockets. To begin with, I decided to experim ... TF-8. I couldn't Google the solution, I tried changing the connection type on the server. What went wrong in this situation?

Real-Time Web application. What to choose? Workerman or Centrifugo?

Hello everyone. Help me decide on the choice of a WebSocket server. I have been trying for a long time to find something that ... with the choice of a suitable solution. Everywhere there are some shortcomings and dancing with a tambourine when installing

Getting socket tcp / udp data

You need to get the data packet to the public IP and return the message. The code below only handles local requests 192.168.0 ... matically, but packets they still don't reach To check, I use the linux commands: echo "hello" > /dev/udp/ip/port and ping

Creating a chat for a site with a client-server-client architecture

You need to create a standard chat with the ability to send text messages, emojis( in principle, I think this is not a proble ... ice and the necessary Internet resources that could help a beginner-average person create a chat that meets this requirement.

Web-Socket Timeout

I'll go straight to the heart of the problem. We received a task to raise web sockets. Working on OpenServer shared via domai ... ]; $ask = $this->transform(json_encode($messageArray)); return $ask; } }

Daemons in PHP. WebSocket

How bad is PHP at this and why? I read on various forums that PHP does not cope well with WebSocket, they say the server ofte ... xample, the task is to write a chat with an attendance of 100 people. on websocket, does php handle these worse than node.js?

A socket in PHP. Simple example

Hello everyone. You can show a simple robot socket on the PCP. A simple socket that outputs a static string without receiving ... works if you connect only on the desired port (for example, example. com:8000) or with any connection. This is all new to me.

Web framework for c / c++

Hello! The question is this. I'm going to write an application where you need everything to work very quickly. The applicatio ... erience working with the C language and "and what came of it?" What other web framework options are there for the C language?

What is the difference between a socket and a websocket?

I realized that a socket is roughly speaking a socket-interface (as the parameters of the computer's IP and port), which is c ... can connect to it by writing the same address and port. And then the web sockets loomed. What is the difference between them?

Java server for a J2ME application

I'm trying to write a server on Java for polling and managing some hardware with GPRS - modems on J2ME. Now I have implemente ... her the same fret. Tell me which way to think, or maybe I did not choose the right technology to implement this task at all?