javascript - Can C# connect to a WebSocket using Socket(Not WebSocket) class -


i have c# app communicates on socket. want code web app can connect c# app on socket. know c# has different classes websocket , socket.

questions :

1-) if use websocket javascript, can connect existing socket structure on c# or required re-code websocket ?

2-) there other performance efficent way ?

a websocket connection uses socket, predefined way of framing data, while if use socket directly, can define own way of framing data, other end must know how data framed in order understand it.

answering question: in javascript can connect sockets running websocket, since websocket javascript client try communicate in "websocket" way , won't understand different.

however, if need javascript access regular socket, can try use intermediary proxy websockify, cannot connect directly.


Comments

Popular posts from this blog

ios - RestKit 0.20 — CoreData: error: Failed to call designated initializer on NSManagedObject class (again) -

java - Digest auth with Spring Security using javaconfig -

laravel - PDOException in Connector.php line 55: SQLSTATE[HY000] [1045] Access denied for user 'root'@'localhost' (using password: YES) -