Click here to Skip to main content
15,881,882 members
Everything / WebSockets

WebSockets

WebSockets

Great Reads

by Darko Jurić
WebSocket RPC library for .NET with auto JavaScript client code generation, supporting ASP.NET Core.
by Gwyll
We're in a Dark Age when it comes to Software Development. We need a Renaissance.
by Jaime Olivares
An architectural proposal to integrate mobile and .Net applications
by tonywilk
Example server and client using different protocols over a Websocket (php/js)

Latest Articles

by Gwyll
We're in a Dark Age when it comes to Software Development. We need a Renaissance.
by Michael Chourdakis
A quick way to interoperate between Win32 and a browser using WebSockets
by Sandeep Mewara
See with a working demo how SignalR works and how it can be used
by Silvia Campo
I've been using web sockets the same way as a regular http request; I wasn't using them to their full potential...

All Articles

Sort by Score

WebSockets 

14 Jan 2018 by Darko Jurić
WebSocket RPC library for .NET with auto JavaScript client code generation, supporting ASP.NET Core.
16 Sep 2022 by Gwyll
We're in a Dark Age when it comes to Software Development. We need a Renaissance.
21 Aug 2012 by Jaime Olivares
An architectural proposal to integrate mobile and .Net applications
1 Feb 2014 by tonywilk
Example server and client using different protocols over a Websocket (php/js)
23 Jun 2015 by Kel_
A game of life "MMO", with a persistent simulation running on the server.
19 Jul 2020 by Sandeep Mewara
See with a working demo how SignalR works and how it can be used
6 Mar 2018 by Silvia Campo
I've been using web sockets the same way as a regular http request; I wasn't using them to their full potential...
26 Jun 2011 by OriginalGriff
You may find this helps : 32bit dll on a 64 bit VS 2008 machine[^]It wasn't hard to find: Google is very simple to use, just feed it your subject line[^]
21 Jul 2011 by Thomas Mack
I have a C# Windows Application I am developing for a company. I also have a custom back-end system I wrote, that uses my custom data provider, as well. Basically, when you login to the windows application I would like it to verify the username and password that they use for their website. That...
24 May 2017 by raddevus
Use SignalR to create a Slideshow app which asynchronously updates all web clients so they see the same slide you are seeing.
6 Feb 2013 by Joezer BH
Hi KavithaxxxxxxxCheers, Edo
6 Feb 2013 by Pete O'Hanlon
Whenever you need to add multiple styles, all you need to do is separate them by a semi-colon. Edo has given a simple example in Solution 1. I would, however, advise against using inline styles; while they may seem convenient at first, they can end up causing you a lot of pain should you decide...
3 Mar 2013 by Sergey Alexandrovich Kryukov
Look at this way: whatever works for WWW can work for LAN, not visa versa. So, if you can make a Web char, it will work for LAN immediately. This way, there is nothing special you should look a manual for.From the other hand, LAN allows you to me way more free in instrumental facilities....
8 Jul 2015 by DamithSL
refer Getting Data From View to Controller in MVC[^]
8 Jul 2015 by malhotraisha3388
hiwe have so many ways to pass data from view to controller and these are as follows:-1. ViewData2. ViewBag3. TempData4. using Modelfollowing are some links where you can get the code for this...
18 Jul 2017 by KarstenK
It is an interesting issue because the are different way to do the job. Take a look at this discussion at stackoverflow. Another interesting way is CGI as described in this tutorial. By the way multi threading is absolut necessary. Please publish an article about your results because I am...
13 May 2021 by raddevus
Because push-based means you don't have to poll anything. In the case of websockets you set up the socket and then it is event-based -- when something changes on the server then the client is automatically "pushed" the changes. In previous...
14 Oct 2021 by Patrice T
Quote: Is there any way that I can regulate the speed of the "train" on the map? Making him go slower or faster? Have a look at timers. JavaScript Timing Events[^]
21 Dec 2022 by OriginalGriff
A Socket is a point-to-point connection: one server, one client. To support one server, multiple clients, you need multiple Sockets: one per client. The easiest way is to setup each client as a separate thread which creates a socket and stes it...
16 Feb 2024 by Andre Oosthuizen
You have basically answered your own question without knowing it - Quote: Then I made my consumers.py (here I'm a little bit confused, isn't it better to refer to my room unique_id instead of name, since the ID is unique and not the name in my...
16 Mar 2011 by R%S
Enable access from mobile phone emulator to Visual Studio WebDev.WebServer listening on localhost
24 Jun 2011 by Rajesh Katare
Dear Developer,I am trying to request to Java Server Socket but they are unable to receive my data_string (data="ABC").They receive with error...."java.io.StreamCorruptedException: invalid stream header: 56455249"my code is as below...string url =...
26 Jun 2011 by Ravi Sharma 2
Hi I have a 32-bit J# dll which i need to call and Run from a asp.net application on a 64-bit machine. Because of j# DLL , its unable to run on 64 bit machine in visual studio 2008. only visual studio 2005 support the j# and visual studio 2008 not support this plateform. Is any solution to...
22 Jul 2011 by Alex Perepletov
Does it really have to go to sockets layer and developing APIs? You probably want to use WCF authentication service. MSDN has some docs on this topic: How to: Enable the WCF Authentication Service[^]
22 Jul 2011 by tphung.hue
I have a blog using wordpress,I want to use Windows libraries Live.Writer.Blog.Client.dll (part of the software Windows Live Writer 2011)http://explore.live.com/windows-live-writer?os=other[^]I want to use this library to write articles, read list articlesHow I do? can someone give me...
21 Dec 2011 by delicious cake
hi there, i'm writing an application that is getting some data from the web over a proxy. as core function i use the simple-http-proxy-class from this site. (can be seen below)as my app is runnning only somehow and i don't know if everything is going as i want it to, i researched the...
21 Dec 2011 by Henning Dieterichs
The proxy typically has a different port than the service you are trying to consume.Here are some improvements you should consider:* SimpleHttp is no real "class" in object-orientated manner. You have simply a class that contains a method. Better: Provide an IStringDataProvider Interface...
11 Jan 2012 by Lucian Adrian Rosu
I created a client in javascript with websockets that connects to a c sharp server. The problem is that after the handshake my connection closes and I don't know why. The only error I get is: "Unrecognized frame opcode: 7". I use Google Chrome 16.0.912.75.Step by step:- WebSocket...
11 Jan 2012 by phil.o
It's just a guess, but in your server, you are using Encoding.ASCII, and in your ComputeWebSocketHandshakeSecurityHash09 function you are using Encoding.UTF8.If I were you, I would first use rather ASCII, rather UTF-8, but not a mix of both.Hope this helps.
11 Jan 2012 by Lucian Adrian Rosu
I found what I was looking for. Here is a link to WebSockets in c sharp:http://code.google.com/p/bauglir-websocket/[^]
20 Jan 2012 by shankha2010
Hi, I am trying to navigate to google with some search keyword.as those search pages are too big and I don't want the header part, so decided to try partial download the page from 1000th character to end.so I tried Range: bytes=1000- in HTTP header which works for me for other...
3 Aug 2012 by Pallab_GT
Hello friends.I am designing a system where the requirement is as follows:I have to send a large file (10mb +) to asp.net through AJAX. The file will be sorted in the server and it will take time. I have to notify the client the status of the sorting accurately.Suppose I am sorting 100 sets...
4 Aug 2012 by Parwej Ahamad
You can achieve it through tow way- On client side, run a timer that will check periodically if any notification available from DB and for notification update the database.- Second is, use SignalR through this register a method on client side and on server side once you done your sorting...
19 Sep 2012 by Cihan Çildan
Hi,I have been developed a web application on a server. My question is that Is it possible to connect two client by using websocket to communicate each other instead connecting to server. They should listen the other reciprocally. I mean, for instance after the page loaded two user's...
19 Sep 2012 by Ganesan Senthilvel
As WebSocket PubSub(Publish Subscribe) model, any node can be publisher and other can be subscriber based on the message processing. Yes, it is possible. For WebSocket .NET implementation, you can refer at DotNet WebSocket Programming[^]
21 Oct 2012 by nuclearpeace
using KineticJS libI have little issue here (i obviously miss something). I simplified it from my bigger application: When i click blue rectangle, i add another layer to the stage that includes red rectangle (clickable), when i click this red rectangle, it removes second layer with red...
25 Oct 2012 by Dave Kreskowiak
Yeah, that would be 1Gb/sec or greater. You better check with your ISP's on both end to see if they even support that. That kind of capacity exceeds the capabilities of most local ISP's.Get out your checkbook or credit card, because you'll be paying for an OC48 line and those don't come...
5 Nov 2012 by m.bleimuth
Hi,i am trying to write some kind of a simple information System. My Server is written in c#, it sends every minutes udp heartbeats with Server Information (ip, port of the Server). Now i want to write a simple Website with html and JavaScript that connects to my Server and receives data...
28 Nov 2012 by shankar.parsanamoni
want to bind list of values to kendoCombobox from dataBase through webservices.Here is the code$(document).ready(function () $("#CbxArea").kendoComboBox(); var cmbArea = $("#CbxArea"); $.ajax({type:...
18 Dec 2012 by ahiredevyani
hi ,If you want to learn more you can visit to site w3schools its really helpful.
19 Dec 2012 by sreeCoderMan
hi friendsthere is a item template in my gridview where in item template there is a textbox..in textbox some values are displaying but not from database it can be changed dynamicaly by the user my question is how to get the values inserted by the user in each row and display in...
20 Dec 2012 by VivekDuddempudi
Build the Item Template dynamically or Read the text box values and id from java-script and save it hidden fields then navigate to required page
29 Dec 2012 by sreeCoderMan
hi friends my menu list Control in asp.net 3.5 is not working properly in google chromeplease help me friends am in urgent.menu_style { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 11px; color: #000000; ...
28 Dec 2012 by sreeCoderMan
To solve this you will need to tell .net the capabilities of the browser. For .net 2.0 & above you need to create a new browers file with the capabilities and upload it to your server.In VS2008 Solution Explorer right click your application and add the “ASP.Net Folder” App_Browsers if you...
10 Jan 2013 by blackbolek
HiI'm trying to find a communication method between web application and desktop application on Windows PC. At the moment I have a group of applications written in C++ (MFC) for Windows desktop environment. They can communicate between each other using TCP sockets - locally or over...
10 Jan 2013 by Sergey Alexandrovich Kryukov
It really depends critically on what server-side technology you can use. In many cases, it still can be TCP, but firewalls the problem. For example, with ASP.NET you can use the power of WCF. It's just impossible to make a decisive recommendation based on limiting knowledge of your...
13 Jan 2013 by poonam121
how to set time zone for my website according to users time . coding is done in html. so i want coding in html..please reply fast..
13 Jan 2013 by Abhishek Pant
this may help you-DateTime Values according to the remote time zone[^]How to display time according to country timezone[^]how to set time zone for my website according to users time zone Time Zone Class[^]Understanding DateTime and TimeSpan in .Net through real time example...
6 Feb 2013 by Am Gayathri
in my application am usingxxxxxxxbut i want to adjust the width of the too.so how can i do that here? i already used style tag?how can i give two attributes?
7 Feb 2013 by Ganesh Kumar Kaki
That's an INLINE STYLE SHEETBetter go for extended style sheets. It helps you to design the page in a quick time
12 Feb 2013 by vinodkumarnie
There are certain rules to write styles..So please Refer below links..http://www.javascriptkit.com/dhtmltutors/cssreference.shtml[^]http://www.w3schools.com/css/css_syntax.asp[^]http://www.w3schools.com/css/css_syntax.asp[^]
12 Feb 2013 by Chinna2903
Hi,I just need how we could call a webservice from a html page in android. please let me know if there are any samples.Thanks
12 Feb 2013 by Guirec
You need to integrate a javascript library which can deal with soap content. There is one here[^] but I have never tried it myself so I can't tell how good it is.
16 Feb 2013 by Sandeep Mewara
It does not work like this here.Here is what is expected of enquirers:1. TRY first what you want to do! You may find that it's not that hard.2. Formulate what was done by you that looks like an issue/not working. Try them and tell if you face issues.Members will be more than happy...
3 Mar 2013 by Tobi P.
Hello togheterI would like to make a Local Area Network Chat. It should be accessible over the browser.How can I make something like this? Do I need special things? Do you know some tutorials or an explanation how to setup a lan-chat?Thank youPixel-Wizard
16 Mar 2013 by Oleksandr Kulchytskyi
Hi guys.Does anybody have encountered with problem of transferring voice stream in a HTML5 client to the backend (.NET, Java) ??Maybe someone have some useful links, etc. ??Thanks for advance.
17 Mar 2013 by sreeCoderMan
hi friends,am using visual studio 2008 sql server 2008i have taken a host godaddy account in that i have added my domain in the root directory i have uploaded my project unfortunately my website is not working its showing 500 server error i will show my web config file i have...
31 Mar 2013 by amith113
Hi ,Im new to html5 websocket , is that possible to establish a connection from websocket to java socket. if it is possible how it can be done . Kindly help me out.Thanks in advace.
1 Apr 2013 by Sandeep Mewara
Exact similar discussion here, marked solved: Can you connect an HTML5 web socket to a Java Socket?[^]. ...WebSocket works by the client side opening a port 80 connect to the server side, and sending a variant HTTP 1.1 request to the server to negotiate a WebSocket connection. If the server...
2 Apr 2013 by Ievgen Ragulin
Comparing performance channel api and socket.io on example of multiuser whiteboard
2 Jul 2013 by Zhuyun Dai
I wrote a WCF service and a WCF client application in .NET 4.5. They communicated each other using WebSocket and worked very well. As we know, Binary SOAP message encoding was used by default. But I changed it to Text SOAP message encoding for some purpose. The service and application still...
28 Aug 2013 by rwx75
Following angular code doesn't work. How can it be fixed?**$scope.Load = false;**div ng-controller="Soket_Control"> ...
6 Sep 2013 by Sergey Alexandrovich Kryukov
You are asking about an important feature which is unfortunately not so easy to implement with HTTP, which is primarily build for pure client-server paradigm, when everything happens on request from client side: a client sends HTTP request, and get HTTP response from server. This is called...
3 Oct 2013 by chester_it21
dear all,master greetings to all,I am trying to build a WebSocket client, and his client should be able WebSocket connection to existing WebSocketServer ...My question is, how do I make webscoket Client with a WCF or his other (important still using dotnet technologies) ....whether...
4 Oct 2013 by Thomas ktg
Hi,I hope this article would give you some basic ideas on Writing WebSocket server and WebSocket Clienthttps://developer.mozilla.org/en-US/docs/WebSockets/Writing_WebSocket_server[^]
7 Oct 2013 by Mark R Slade
I am trying to build an Alchemy Websockets server with VB.NET. I have taken the sample code, in C#, for setting up a new instance of the server and ran it though a C# to VB converter.ORGINAL C# CODE:-{ // instantiate a new server - acceptable port and IP range, // and set up your...
7 Oct 2013 by pdoxtader
Well, at first glance the object initializer isn't formatted correctly. How about this: Dim aServer = New WebSocketServer(81, IPAddress.Any) With { _ .OnReceive = OnReceive, .OnSend = OnSend, .OnConnect = OnConnect, .OnConnected = OnConnected, .OnDisconnect =...
11 Oct 2013 by DavJes
Hi ,Need quick info on WCF 4.0 websocket. If we develop WCF-Webscokets(NetHttpBinding) Service on VS2012 and deploy on WindowsServer2012 R2 - IIS8, Will wcf client(as WindowsService) run in Windows-2008 R2 server - Windows7 OS by installing only .Net 4.5?If no, any possibility to...
29 Dec 2013 by AnassDev
Hello everyone I create i project using HTML5 - javascript - websocket his objectif is to make the white board in front of user, the teacher draw on his computer and the students saw what his drawing in there computers. and not just that, i integrate the chat, and now i looking for a way to...
19 Feb 2014 by x0rn
I am trying to receive data in real-time from tcp/ip server using socket and Server-Sent Events.public void ProcessRequest(HttpContext context){ HttpResponse Response = context.Response; DateTime startDate = DateTime.Now; Response.ContentType = "text/event-stream"; ...
19 Feb 2014 by x0rn
HTTP is stateless, ASP.NET WebForms only tries to hide this with viewstate and such. As soon as you see the page in your browser, the page isn't alive anymore and your OnSend callback won't be called anymore. This is also explained in Create web page with live socket based data.If your goal...
25 Mar 2014 by Ariana Bond
Hi,I am trying to fetch query string parameters while creating websocket connection. I have used traversed a lot to get the solution, got some answer, but didn't work out for me.Below is the code i am using...var url = require('url');var WebSocketServer =...
11 Jun 2014 by Yalcin Doksanbir
Dim rawData = System.Text.Encoding.UTF8.GetBytes("hello") Dim frameCount = 0 Dim frame(10) As Byte frame(0) = CByte(129) If rawData.Length
12 Jun 2014 by Member 10881745
Hi, I need a client which can communicate with the server using socket.io+ssl connection in c++. I got some codes in java but i want in c++.if it is a websocketclient+ssl(wss) is also fine for me. can any body share the code or information with me please..Thanks,vvk.
12 Jun 2014 by Richard MacCutchan
Please do not post the same question in multiple forums; I already responded to this at http://www.codeproject.com/Messages/4840909/SSLpluswebsocket-or-SSLplussocket-io.aspx[^].
14 Aug 2014 by Sreejesh T J Nair
Better way to achieve this is create one DTO class which contains all the columns in the datatable and iterate through this datatable and create list of that dto class and using JSON serialization you can convert this to JSON string easily and you can deserialize the object using this.Hope...
27 Oct 2014 by GAJERA
Hi All,I have been created the proxy to trace websocket traffic .It work fine when small amount data has been transferred. In other case when transfer big amount of the data I received data in difference frame (chunk) instead of one.I need the big data as single frame (chunk) Is there...
27 Oct 2014 by Suvabrata Roy
Hi,You need to check what is your max request length at web Config.Ref : http://msdn.microsoft.com/en-IN/library/e1f13641(v=vs.71).aspx[^]Second : RFC doc about web Socket Ref-> http://msdn.microsoft.com/en-IN/library/e1f13641(v=vs.71).aspx[^]Go through the answer you will find...
27 Nov 2014 by Tariq Mehmood
I have more than 100 Clients .1) Each clients are behind router. (mean external IP always change)2) Each Clients have its own local DB SQL.3) Each Clients using Windows Application c#. 4) Each clients have not install IIS.5) Each Clients will have internet Connection.My Server is...
22 Dec 2014 by Adam Lee
I want to make simple demo in win form like "hello" send from client and server response back to that client. client Server. duplex communication .client ,server both are on different network .I had try to use socket ,web socket. Signal R ,X socket , socket .but i could not resolve...
3 Jan 2015 by Member 11341870
My task is to implement a Node.Js server ("my server") that will continuously read-in messages which are being emitted from several different websocket connections ("source servers", different URLs) and then process these messages somehow.I was successful in the case of ws (or wss)...
3 Jan 2015 by Member 11341870
Package socket.io-client solves the problem :-) var socket = require('socket.io-client')('http://io.weplay.io'); socket.on('connect', function(){ console.log('Connected.');}); socket.on('message', function(data){ console.log(data);}); I could not solve it for several...
15 Jan 2015 by BacchusBeale
To send requests and receive responses you can use:HttpWebRequest req = (HttpWebRequest)WebRequest.Create(url);where url is the query string "https://...".The main difference with SSL is you must verify the certificate://before any request you need this only once in your...
1 Apr 2015 by tslin89
Hello, I want to implement an android application that will accept push notification from server. I am completely new to mobile development and I don't know where to start. Due to google search result, I know that this can be done using websockets. But in visual studio, when I try to install...
1 Apr 2015 by Peter Leow
Check this out: Push Notification For Windows, iOS & Android - Quick, Easy and Flexible[^]
26 Apr 2015 by Member 11644253
How to connect to secure websocket with valid certificate and basic authentication.i am using faye-websocket gem in my code.require 'faye/websocket'require 'eventmachine'EM.run { ws = Faye::WebSocket::Client.new('wss://aws.com/gateway') ws.on :open do |event| p [:open]...
17 Jun 2015 by tslin89
Hello all, I am using autobahn websocket[^] to create communication between my server and android client. When I hosted my web socket on my site IIS and connect from my android, it is working fine.Site URL to connect: "ws://mysite.com/WSockets/WSHttpHandler.ashx?name=android".But when...
8 Jul 2015 by Khushi Saraswat
I want to get view data on controller
27 Aug 2015 by Dharmesh .S. Patil
You can do it with ViewModels like how you passed data from your controller to view.Assume you have a viewmodel like thispublic class ReportViewModel{ public string Name { set;get;}}and in your GET Action,public ActionResult Report(){ return View(new...
26 Jul 2015 by Sergey Alexandrovich Kryukov
Preparing interview questions is pretty much useless. Please see my SSRS interview questions and answers[^].The questions like yours make no real sense. I have no idea if you use jQuery or not, and, if you do, why? Many other people do it because they don't want do some job which is already...
28 Jul 2015 by Member 11870612
I have created a website. I am facing the problem like, the alignments are differing from Browser to Browser and also when minimising the window.
3 Aug 2015 by Suraj Dighodkar
i am using wysihtml editor if i paste "http://www.google.com" in wyshtml editor then pasted value comes in anchor tags as value instead of the value what i pasted . if i manually write "http://www.google.com" then anchor is dose not prefixed as a value.so i want the value without anchor tag...
4 Aug 2015 by Richard Deeming
I've only ever seen this happen in Internet Explorer. Assuming that's the browser you're using, try executing the following javascript code when the page loads:if (typeof(document.execCommand) === "function"){ try { document.execCommand("AutoUrlDetect", false, false); ...
10 Aug 2015 by JR37
I'm working on a webpage which uses PHP to get the state of some servers located in the same machine (exactly 7 servers).When I was only getting the state of 1 server the page did load fast and everything was ok, but after adding all the servers it takes like 5 seconds to load and sometimes...
10 Sep 2015 by Manoj Kumar Choubey
Please see following...
23 Nov 2015 by mlowry
I am new to websockets and am developing an application to run on an IIS server with connection to a Windows Forms client. The message-oriented app (read as byte streams) will have a mix of message sizes, from less than 1k to a max of 64k. It will also have varying frequency of messages, with...
25 Jan 2016 by JuanFelipe Loyola Andrade
Hello, I have a server connected to a GoPro camera, which sends the images in base64 format, and can be seen on localhost, now I need to capture screenshot, but I can not, any ideas? Go Pro cliente
31 Jan 2016 by Ehtesam Ahmed
hi I am trying to test the memory consumption for multiple websocket connection to my webpage. The website is hosted in local IIS server. I load the same page in different tabs and establish a websocket connection for data transfer. Problem is it only allows me to do it on three occation....