Simple Web Transport
Transport that uses the websocket protocol. This allows this transport to be used in WebGL builds of unity.
Source code: SimpleWebTransport
- Download the code from the source folder or package on Release page.
- Put the code somewhere in your Assets folder
- Replace your existing Transport with SimpleWebTransport on your NetworkManager
Please report any bugs or issues Here
This transport supports the wss protocol which is required for https pages.
How to create and setup an SSL Cert
If you host your webgl build on a https domain you will need to use wss which will require a ssl cert.
Log levels can be set using the dropdown on the transport or or setting
The transport applies the dropdown value in its
Log methods in this transport use the ConditionalAttribute so they are removed depending on the preprocessor defines.
These preprocessor defines effect the logging
DEBUGallows warn/error logs
SIMPLEWEB_LOG_ENABLEDallows all logs
SIMPLEWEB_LOG_ENABLED info or verbose logging will never happen even if log level allows it.
See the Unity docs on how set custom defines.