Skip to content
This repository has been archived by the owner on Oct 23, 2020. It is now read-only.

Latest commit

 

History

History
23 lines (17 loc) · 370 Bytes

README.md

File metadata and controls

23 lines (17 loc) · 370 Bytes

Installation

npm install rbx-engine.io

Example

import Engine from 'rbx-engine.io'
const Socket = new Engine<string>() // Connects to localhost

Socket.On('open', () => {
	print('Connected')
	Socket.Send('test')
})

Socket.On('message', (data) => {
	print(`Message recieved: ${data}`)
})

Socket.On('close', (data) => {
	print('Disconnected')
})