I have created template for user to user chat module. Need help to complete realtime chat. Need some validations like highlight chat window on message received if it is inactive. `to_id` is collected in script (`var userid`). how to collect `from_id` , if user is logged in via php. currently there is no login, but i will add login script later. How to get session id or login id in javascript **Template** https://jsfiddle.net/oxch99us/ **Database ** CREATE TABLE `chat_interactions` ( `message_id` bigint(11) NOT NULL, `to_id` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `from_id` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `message` text COLLATE utf8_unicode_ci NOT …

Member Avatar
Member Avatar
+0 forum 6

I have form having input type file to upload image & other input fields. How to submit form using websocket ? $("#form").submit(function() { "use strict"; var formURL = $(this).attr("action"); var postData = new FormData(this); //alert(postData); $.ajax({ type: 'POST', url: formURL, data: postData, processData: false, contentType: false, success: function() { $('.content').prepend("<div class='alert alert-success alert-dismissable'><button type='button' class='close' data-dismiss='alert' aria-hidden='true'>&times;</button><h4><i class='icon fa fa-check'></i> Yeah!</h4>Occupation Added Successfully!</div>"); } }); this.reset(); $('#myModal').modal('hide'); return false; });

Member Avatar
+0 forum 0

Hello, I made a WebSocket service in Apache under CentOs with PHP and JS that works great if the protocol is ws:// . The problem is that the site is served through https:// so I must use wss protocol (cause mixed content policy). I have tried many approaches to make it work and any idea would really help. First I tried to bind the socket of the WS (WebSocket) Server to 443 , but I got permission denied. The next thing was trying to alternate httpd.conf through include file to make every communication made in this server IP though a …

Member Avatar
Member Avatar
+0 forum 2

Good morning everyone I come here today with some questions in hopes that someone can help me through. The problem: At my work, I am requiered to create a chat app for mobile using html5 and websockets. We have a custom made chat app for desktop in the company which works fine, on a server there is an application that is listening to the clients requests. There, everything works fine. What I need is to be able to communicate the mobile app to the desktop apps. But i don't know where to begin. Can someone provide some information or some …

Member Avatar
Member Avatar
+0 forum 4

How to make [Java Websocket](http://java-websocket.org/) work with [Hessian protocol](http://java.dzone.com/articles/hessian-web-service-protocol)? I need both server and client using Hessian to communicate, but I don't know if it is possible and what to do. Thanks.

Member Avatar
Member Avatar
+0 forum 2

I am building a chat application based on websocket protocol.I am uploading this on an apache server and i am getting this error : "Warning: socket_bind() [function.socket-bind]: unable to bind address [98]: Address already in use" I am using port no. 12346. When i checked this port's status i got "12346 is not responding". I have checked many ports on my remote server ,none of them is responding.So please tell me how to check if there is a usable port which i can use?? I have also used port 80 and 443 but i am getting the error : Permission …

Member Avatar
Member Avatar
+0 forum 2

The End.