Skip to content

Commit be8cf70

Browse files
committed
Added isomorphic-ws to add browser compatibility
1 parent 022e303 commit be8cf70

File tree

3 files changed

+9
-3
lines changed

3 files changed

+9
-3
lines changed

js/RealTimeConnection.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import WebSocket from 'ws';
1+
import WebSocket from 'isomorphic-ws';
22

33
class RealTimeConnection {
44
constructor(akun, settings) {

package-lock.json

Lines changed: 6 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "akun-api",
3-
"version": "4.2.0",
3+
"version": "4.3.0",
44
"description": "A module intended to enable easy interactions with Anonkun",
55
"main": "index.js",
66
"type": "module",
@@ -18,6 +18,7 @@
1818
},
1919
"homepage": "https://github.com/Fiddlekins/akun-api#readme",
2020
"dependencies": {
21+
"isomorphic-ws": "^4.0.1",
2122
"lodash.clonedeep": "^4.5.0",
2223
"qs": "^6.8.0",
2324
"ws": "^7.1.2"

0 commit comments

Comments
 (0)