-
Notifications
You must be signed in to change notification settings - Fork 0
Opening a Websocket
bapquad edited this page Feb 20, 2022
·
2 revisions
[Home] > Opening a Websocket
This content we learn how to open a websocker server and manipulate with socket in Element5JS API.
You can create new websocket object by using code like as following example.
let wsc = request5.OpenSocket("ws://localhost:9898/");
You can send to server some texts when connected to websocket server completely.
wsc.onOpen((e)=>
{
wsc.send("Hi! I'm client.");
});
Bapquad Games since 2015
- Get Started
- Working with DOM
- Constructing the StyleSheet
- Working with Sprite
- Working with Timeline
- Working with Scroller
- Working with Camera
- Working with Microphone
- Making the Ajax Request
- Opening a Websocket
- Working with Storage
- Checking User Agent
- Working with GPS
- Working with Router
- Playing the Stream