rbx-engine.io
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

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')
})

Readme

Keywords

none

Package Sidebar

Install

npm i rbx-engine.io

Weekly Downloads

1

Version

1.0.1

License

ISC

Unpacked Size

9.2 kB

Total Files

12

Last publish

Collaborators

  • dog2puppy