38 Topics
![]() | |
I'm building an SSR React app (Next.js) with dynamic nested routes where components at multiple levels depend on both initial server-side data and real-time client-side updates via WebSockets. The challenge arises when synchronizing DOM state post-hydration—especially when the component tree changes due to route-based code-splitting, and some child components rely … | |
I'm trying to find a concrete example where that type is used, I can't find any on the whole internet, the documentation of the package is very advanced or doesn't give details. It all started from trying to find an error that was "*goneException*" when using *postToConnectionInput* to a client … | |
I'm using Wireshark Packet analyzer & when I filter for all Websocket packets I see what I am sending to a host & receiving from the host. When I check individual packets mine always show as [MASKED], but it does have a 'Umask Payload' which shows my data in clear … | |
I wanted to post something in Daniweb for a while but I didn't had anything new. Recently I decided to write a new implementation for websocket connections client side using Shared Web Workers. Shared Web Workers are supported today by most browsers for desktop but few for mobile devices , … | |
I want to count and show live users counter on my page. My url structure looks like this `domain.com/miningbot?id=pool-v9w1x2y` The users which are inside the parameter should be counted, updated and displayed to the user. Also, the parameter can be changed. I have asked ChatGPT to write me some starting … | |
Hello everyone. I am building a websocket client app that receives all the data and inserts it into a MongoDB database. The program runs, but after a while, some exceptions are rising. import websocket import _thread import time import json import asyncio import os import pwd import socket import traceback … | |
Hello, does anyone here know how to make notifications with websocket + codeigniter4 / php? Example: will display the total of all users who registered today | |
Hi there, I've come across an issue while trying to get all the records from a SQL database in java. A bit of necessary introduction here. I'm not using any framework just JDBC and the getAllBooks method is part of a REST call. The failing method is essentially doing this: … | |
Hello, I'm a newbie in python. I've written a code for websocket for server and client communication. here im getting some data from server ( "sprintf(buffer,<STX,250,350,254,%d,858,STX>, i) and im saving this to RPI which is my client. now i've to display these readings on a window using tkinter. i've created … | |
my connection to **WebSocket** is getting Disconnected continuously. I'm working in folder `realtime` on `localhost`. How to keep WebSocket connection live? How to use WebSocket in javascript? **Link:** http://localhost/realtime/ <script language="javascript" type="text/javascript"> var myWebSocket = new WebSocket("ws://localhost/realtime"); myWebSocket.onopen = function(evt) { alert("Connection open ..."); }; myWebSocket.onmessage = function(evt) { alert( … | |
The facts: We are talking about a small company (5 persons) with many clients that making real money (we don't) . We provide our own software that has unique features against the e-commerce completion. The problem: the first glimpse of the problem arose around 2012 and made clear around 2014 … | |
Looking for conceptual help... I am writing a program in C++ to handle socket connections, eventually to be a websocket server. However, the rest of my stack uses PHP for serving up page. Is there a way to use PHP as an intermediary between the client (JS) and the application … | |
Hello all, I have an spring MVC app, that connects to my backend MySQL DB. I have my data source configured properly in my spring bean config XML file, as follow: <bean id="dataSource" class="org.springframework.jdbc.datasource.DriverManagerDataSource"> <property name="driverClassName" value="com.mysql.jdbc.Driver" /> <property name="url" value="jdbc:mysql://localhost:3406/mydb" /> <property name="username" value="root" /> <property name="password" value="passwd" /> … | |
I am trying to send a message to my websocket server but I keep getting this error. Traceback (most recent call last): File "send.py", line 5, in <module> ws = websocket.create_connection("ws://ipaddress:9001") AttributeError: 'module' object has no attribute 'create_connection' I created a python server file server is started but when I … | |
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 … | |
Hi guys, I have a simple application which allows users to input a divisor, a divident and then calculates the quotient. I'm using vaadin as framework but I don't think that matters. So I've been thinking about the exceptions that can occurr and these are the ones i have identified: … | |
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 … | |
There are some times in my life that I am sure there is a bug in my code but it turns up that the bug was in the language or in the system. This thread is talking about those times. Please share your own relevant experience. I ll start sharing … | |
I set up a servlet project in eclipse and I am trying to connect a Access databasae(Ucanaccess) with it. By looking at below error, its look like I am missing jar files but if you take a look at attchement image. You will see all my jar files are in … | |
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 … | |
hi everyone, i am new in jsp and i would like to have your advise to develop an online chatting application use jsp. i would like to know is it possible to develop chat application using jps and sockect or should i have to use websocket an do i need … | |
I am trying to creating websocket with php and here is my connection that i used for create socket connection <?php if(!($sock = socket_create(AF_INET, SOCK_STREAM, 0))) { $errorcode = socket_last_error(); $errormsg = socket_strerror($errorcode); die("Couldn't create socket: [$errorcode] $errormsg \n"); } echo "Socket created \n"; //Connect socket to remote server if(!socket_connect($sock … | |
I am new in programming language. I was trying to create an websocket connection, this is my all line of js var url="ws://localhost:8080/WebsocketTests/"; w= new webSocket(url); and i got this error: **C:\xampp\htdocs\WebsocketTests>node test1.js C:\xampp\htdocs\WebsocketTests\test1.js:3 w= new webSocket(url); ^ ReferenceError: webSocket is not defined at Object.<anonymous> (C:\xampp\htdocs\WebsocketTests\test1.js:3:8) at Module._compile (module.js:460:26) at … | |
I want to implement a website that has different types of users. I want that when a user posts something, the admin will be notified automatically. I have read about WebSockets and found some examples but mostly of them are about chat application. I just want a notification update. I … | |
type Exception report message Unable to compile class for JSP: description The server encountered an internal error that prevented it from fulfilling this request. exception org.apache.jasper.JasperException: Unable to compile class for JSP: An error occurred at line: 22 in the jsp file: /index_submit.jsp name cannot be resolved to a variable … | |
WebSocket is working well for **ws://echo.websocket.org/** but not working on **localhost** I have working example, where WebSocket works for **ws://echo.websocket.org/** As follows, <!DOCTYPE HTML> <html lang = "en"> <head> <title>WebSocket Test</title> <meta charset = "UTF-8" /> <style type = "text/css"> h1 { text-align: center; } .error { color: red; } … | |
Thanks in advance I have used periodic Ajax call for getting a value from the API result in WordPress with Ajax Here is my code Javascript code is : setInterval('getRecentAPI(oid)', 60000); function getRecentAPI(oid){ jQuery.ajax({ type: "POST", url: ajaxurl, data: {id:oid, action:'recent_value'}, success: function(result){ jQuery(".recent div").html(result); } }); } WordPress code … | |
I am considering learning some server side stuff with java, however I am getting mixed views and opinions when searching. I read a benchmark that claims java has superior performance than most alternatives, and I was considering taking a look at grizzly or spring, but I really don't know too … | |
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 … | |
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. | |
Hi, Guys! Actually I want to ask about servlet and ajax. Sorry if I post in wrong room, I have search the room that suitable for my question, but the most suitable is here. I'm developing a push notification for web using servlet + ajax. I have done an tutorial … | |
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 … | |
Hi, I have downloaded the latest dev build of Google Chrome (Version 17.0.942.0) which is the latest dev build. Thanks.which supports the hybi 10 websockets protocol. After running the websockets server (IP 192.168.2.12), if I try the websocket client program on the server itself, it works. However if I run … | |
Hello, Does anyone have any experience with phpwebsocket by google? I'm having a problem connecting to my server... Here is the two files: (server.php) [code] #!/php -q <?php /* >php -q server.php */ error_reporting(E_ALL); set_time_limit(0); ob_implicit_flush(); $master = WebSocket("[server_IP]",12345); $sockets = array($master); $users = array(); $debug = false; while(true){ $changed … | |
Please forgive me, but what I'm going to ask is going to sound terribly stupid, but that's because I'm terribly confused :P I've been reading up on PHP websockets as of lately and I no longer want to run the server locally. So when I upload the server.php file to … | |
i want to build web socket server and Client in vb.net , that connect at my ip:5010 socket, i want to send message from tel net client and get connected at my socket server it should work in GUI not in Console any body could spare time to help me. | |
Hi there ! I'm building my first GC extension, and I am having a problem using this function. I would like to get the url of the current tab, and to do so (after some google research, of course), I use the [I]chrome.tabs.getSelected()[/I] function. Here it is in my code … | |
Hi ! Let's get directly to the problem : I'm actually doing a firefox extension in which i would like to implement the [URL="http://jwebsocket.org/"]jWebsocket API[/URL] in order to build a small chat. I got my main script file, named [I]test.js[/I], and the jWebsocket lib into a js folder. Just for … |
The End.