Questions tagged as 'websocket'

0
answers

WebSocket Html5 and Php? [closed]

A knowledge interest has arisen here to make real-time applications. I've seen a lot of articles here but I'm giving "pal" in the url I pass in js I'm passing it as follows: var socket = new WebSocket('ws://localhost:8000'); U...
asked by 01.08.2016 / 03:26
1
answer

In Crystal it is possible to connect to a WebSocket

I'm starting in Crystal and I want to try to create a connection from a WebSocket server with Crystal as client, is it possible to do it, is there any bookstore for this or is crystal language already available?     
asked by 01.09.2017 / 12:50
1
answer

WebSocket giving creation error

I'm having trouble, when trying to run the websocket, it returns me the following error in the image ThecodeI'musingisthis:<?php$ip='localhost';$porta=8080;//-------------------------------$servidor=socket_create(AF_INET,SOCK_STREAM,SOL_T...
asked by 26.06.2018 / 22:06
1
answer

Get information from user $ _SERVER via socket

I'm using new WebSocket to develop my applications and I need to somehow have access to these connection variables I'm getting through sockets over PHP, is there a way to do this or is it not possible? $_SERVER['HTTP_ACCEPT'] $_SERVER[...
asked by 24.04.2015 / 22:20
1
answer

How to check the console for open websockets connections?

I was analyzing how StackOverflow checks for updates to the list of questions, but nothing appears on the console (Firebug), so I imagine they are using websockets. Then I had a question: can I check the connections open websockets through th...
asked by 20.01.2015 / 14:14
1
answer

How do I know when the computer will shut down / restart / hibernate / suspend in Delphi?

I have a system that works with websocket in Delphi with mORMot, when I reboot the PC or when I disconnect it it executes OnClose and OnDestroy and through that I can remove the callback of the user that was logged in, but when I send hibernate...
asked by 17.08.2016 / 14:38
1
answer

How to send message only to a user with WebSocket

I have a real-time chat application with Websocket , but at the moment it sends messages to the whole group, I would like to know how to send to a selected user, in the case when I click on user (from a list that appears next to it), he will st...
asked by 12.04.2015 / 23:44
0
answers

how to limit socket.io only on specific PHP pages? [closed]

Hello, I'm using socket.io in PHP to create a chatroom, but I'm not able to create specific chat in different rooms, all rooms even with different URL's are using the same chat, how do I change it Is the problem in the port? Would you have some w...
asked by 23.10.2018 / 19:52
1
answer

websockets and php

Well, I have two direct doubts, which are: Is the number of connections to the server limited? What limits that? is it possible to have infinite connections? How can I send a message to a particular user according to this library? F...
asked by 09.03.2015 / 03:40
0
answers

Is there any specification for authentication on Websocket servers?

I was wondering what an authentication process would be like on a Websocket server. I want to use the Javascript API for Websocket. But I would like to have a more restricted and controlled access to the applications that will have connection...
asked by 12.01.2018 / 16:18