/SignalR

Repository includes both server and client apps

Primary LanguageJavaMIT LicenseMIT

SignalR

Repository includes both server and client apps.

The projects in this repo demonstrates how to use SignalR library to create Android client app and to build C# server.

Minimum requirements

  • Visual Studio 2015 or higher
  • Java SDK 8 (Java 1.8) or higher
  • Android Studio 3.0 (Canary 6) or higher
  • Gradle 3.0.0-alpha6 or higher

Usage

To build C# project open .sln of the solution in your Visual Studio. In WinFormsServer.cs change change the value of serverURI variable as you want (btw, replace 27 port number with your own number in CreateFirewallRule() method in the same file). Select WinFormsServer application and from Debug menu in your IDE select Start without debugging. Hit Start button in running application to start the SignalR server.

To build Android app open it in your Android Studio. Generate a key and keystore and sign your app. Connect your virtual or physical device to Android Studio and deploy project to it. Make sure that your device(s) connected to the internet. In main screen enter desired username (nickname) and hit Sign in. Then, the Snackbar will show your connection status after a while. If connection succeeded you can start chatting with others (btw, if you connected to the server you can see your device's GUID that given by SignalR in server app).

Warning to developer

Close look to 16th line and DO NOT CHANGE it, otherwise application will not work and try to do not make unnecessary change.

Contributing

The projects are open source and powered by me (Mirjalal Talishinski). Feel free and report bugs without hesitations. ;) :)