This sample demonstrates how to use the Linx SignalRService service in a simple web-based chat application. It is based on the ASP.NET Core SignalR tutorial, but uses the Linx SignalRService service for handling the server-side (SignalR) functionality.
- Open the
SignalR.lsoz
solution in the Linx designer. - The sample will listen for SignalR connections on port
8080
and REST connections on port8081
. If you want to change these values, you can do so on theSettings
screen. Note that if you change these values, you will also have to update theui/js/chat.js
file for the sample to work correctly. - Navigate to the
SignalRService
in the solution and select theDebug
option. - After the debugging has completed, select the
Start
option to start the service. - Open 2 instances of the
ui/index.html
file in your browser. You can use the same browser (different tabs) or open up 2 instances using different browsers. It is important for the service to be running (see step 4) when you perform this step, as the sample does not contain any reconnection logic on the client side. - In your browser, enter values in the
User
andMessage
fields and click on either theSend SignalR Message
orSend REST Message
buttons. The message will appear in both instances of the opened page. - For additional configuration options on the service, please refer to the Linx documentation.
For questions please ask the Linx community.