Event driven web socket sample

$4
Publisher Stupid Fun Systems
File size 31.76MB
Number of files 18
Latest version 1
Latest release date 2020-03-25 08:26:11
First release date 2020-03-25 08:26:11
Supported Unity versions 2018.4.2 or higher

This package contains:
1. A web socket communication component.
2. A basic ASP.NET core web socket service.
3. Source code for both.
4. Complete documentation.

Note that this sample uses Unity events that fire when a message is received, so will support a message push model from the server. The docs explain this so please read the docs first before implementing your own flavours.

The Unity plugin is written in .NET standard 2.0 and meant for UWP games. This has been tested within Unity editor, UWP on my laptop, and UWP on my XBox One. It needs at least Unity 2020.1.0a17 due to an existing bug in the previous Unity editors (see docs for details).

The sample push web socket service is ASP.NET core 2.0 with .NET standard 2.0 and encapsulated with a Docker container. I have only tested this on Azure and AWS (Amazon Web Services).

Please test with code as is first. Then please use the source code and build your own flavour.

I also uploaded a video of stepping through the code fro plugin to service and back to plugin:
https://youtu.be/eaAx101IIeE
Any questions please [email protected]

Top Publisher Assets