Questions tagged as 'websocket'

1
answer

Ratchet Fatal Error: Class 'MyApp \ Chat' not found in C: \ wamp \ www \ bin \ chat-server.php

I'm trying to learn how to use the new Html5 API, WebSocket, and I decided to start by testing Ratchet, which is a php library. Anyway, I followed all the steps of this tutorial to create a basic chat link and when running on the terminal it d...
asked by 30.07.2014 / 18:12
0
answers

Host application node.js socket.io in heroku

I have a socket.io application in github and I need to run it on reroku but I'm not having success with the tests with other servers, but the index of the other was with the app so if you want to take a look in the code or even here is the link...
asked by 22.11.2018 / 16:37
1
answer

How to use websocket in Aws Beanstalk hosted application

I have a system running on aws beanstalk , it's a Java application with Tomcat + Spring architecture. I'm having trouble making the websocket work, which is locally functional. The websocket receiver answers to url dominio/socket , an...
asked by 04.09.2018 / 02:35
0
answers

I can not connect to the server - Websockt

I can not connect to my Websockt server always from error can anyone help me? Server - PHP <?php $host = 'localhost'; $port = '1234'; $null = NULL; $socket = socket_create(AF_INET, SOCK_STREAM, SOL_TCP); socket_bind($socket, 'loca...
asked by 02.08.2018 / 23:21
0
answers

soket.io - doubt

I'm new to using soket.io and I'm learning how to create a server, but I'm not able to print the message, can someone help me? server.js var fs = require('fs') var http = require('http').createServer(handler) var io = require('socket.io')(h...
asked by 23.07.2018 / 22:33
0
answers

Run WebSocket with the hosted application

The project is a chat with php, Mysql and AJAX. I'm using a WebSocket with Ratchet to run in real time. It ran all right on localhost, but when hosting the project I could not open the connection again when I accessed the websocket url. &l...
asked by 11.07.2018 / 21:39
0
answers

Pass Variable onOpen PHP Ratchet Websockets

How can I pass the internal user code in the Ratchet PHP onOpen function? I need to pass the code to be able to mark the user with the online status; public function onOpen(ConnectionInterface $conn){ $this->clients->attach($conn...
asked by 27.06.2018 / 18:21
0
answers

Passing Variable to Websockets in VUE.js

I'm starting to use VUE + Websockets, I'm using Ratchet. I need to pass a variable to my server.php file (WS execution file), My front looks like this: var self = this; self.ws = new WebSocket('ws://localhost:9000'); self.ws.onopen = fu...
asked by 12.06.2018 / 05:20
1
answer

WebSocket on localhost does not establish connection

I'm testing WebSocket running on port 80 , I've disabled SSL , but I'm not getting results ... javascript var ws = new WebSocket('ws://localhost:80/socket2.php'); One example I saw, tested, and returned successfully was...
asked by 23.05.2018 / 01:14
0
answers

Is it possible to dynamically create a Java Endpoint Server? If not, would you use WebRTC?

Good evening. I am implementing a Chat service, where when clicking on the name of a user should open a private conversation window with it. Using Java, I am using WebSocket Server and Javascript for the Websocket Client. My problem is that b...
asked by 15.03.2018 / 02:21