I have a client-server application written in .Net. The client connects to a SignalR hub in the backend service using the SignalR client.
In the next few months I'm going to be migrating my backend service from .Net to Java and Spring boot.
I have to maintain backwards compatibility for my clients.
My question is, is it possible to connect from a SignalR client to a non-SignalR websockets server?
Sure it's possible. But it wouldn't be easy. You would need to implement the SignalR protocol on the server yourself. It is documented at https://github.com/aspnet/AspNetCore/tree/master/src/SignalR/docs/specs.
Related
I am not able to find any implementation of a WS or WSS web socket server created in a Java Swing desktop application.
I am planning to govern multiple clients using a local server, imagine chat room on a local LAN, but I do not wish to host/run Tomcat or Jetty etc to host the server, I want it to be a Java Swing application that I can copy paste on any machine to make it the server and it can have the same chat features.
UPDATE:
Found some very useful topic : Java - Send Message to all Clients
Will follow this.
I am no expert in this realm, but this might help…
Wikipedia maintains a list of WebSocket implementations, both client and server.
You may be interested in the open-source Atmosphere Framework. It supports working with WebSocket but I am not clear if it actually is a server implementation.
Perhaps check open-source projects like Tomcat or Jetty or WildFly to see if their WebSocket implementation might be modularized sufficiently to plug into your app.
I want to create a server for IoT (ODB GPS trackers for cars) that will send its status to server in real time and show it to client via a web applications.
The devices will connect to server using TCP, and then there will be client/web connecting to server via Websocket.
Spring Webflux is used for the client side. But I do not find a tutorial of Spring Boot TCP Server. And I read that netty is good for that (found an example using netty). So, because webflux is using netty underneath, can I use netty application code with spring boot?? Or is there a way using spring boot for tcp socket programming??
Is it possible a web html site, android or iOS and desktop client to communicate together using Java Sockets (The server is using ServerSocket)?
you should use an implementation of websockets in the server, instead of pure serversockets, something like : http://jwebsocket.org/ and for the web clients use http://socket.io/ that is a very mature implementation of websockets.
like this you could use the same html that make that communicate with the server using websockets, for pages and also to android runnning embeded in phonegap.
hope it helps.
i have java appl using the rampart, metro, and soapui, open source utilities to connect to a .net wcf service
get error 500 response and message that the security validation failed. i am able to connect from the java server using a sample .net application and are able to connect.
whats the trick to get java to use .net services?
You may need to tweak the WCF service configuration to support the java clients. Install and use the WCF Interop Express wizards to help you find the correct config. If you don't control the WCF service, you still should be able to use the wizards to create a sample config they could use.
I need to consume web services from a .NET web service and serve up a web service to a .NET client. I really like Jersey on the Java side but I'm not a .NET developer and don't know much about the microsoft stack.
The team doing the .NET side doesn't have a strong preference as to how the server/client is developed on their side. Is there a .NET web service implementation that already plays nicely with Jersey?
You should look at NancyFx or Service Stack (developed by a StackOverflow employee). It kind of similar to Jersey, but in a simpler way, and definitely easier to work with than the classic WCF services.