UNPKG
guilded-controller
Version:
latest (0.0.3-1)
0.0.3
0.0.3-1
0.0.2
0.0.1
Control You Guilded Bot
github.com/hadiazt/Guilded-Controller
hadiazt/Guilded-Controller
guilded-controller
/
src
/
Module
/
Client.Module.js
19 lines
(16 loc)
•
401 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
const
WebSocket
=
require
(
'ws'
);
class
ClientModule
{
login
(
token
) {
this
.
connection
=
new
WebSocket
(
'wss://api.guilded.gg/v1/websocket'
, {
headers
: {
Authorization
:
`Bearer
${token}
`
} });
return
this
.
connection
; } }
module
.
exports
=
ClientModule
;