Browse code
use local server's hostname
Edward authored on 22/03/2021 08:18:41
Showing 1 changed files
Showing 1 changed files
... | ... |
@@ -44,7 +44,9 @@ |
44 | 44 |
(get-context "2d"))) |
45 | 45 |
(i-d (ps:chain context |
46 | 46 |
(create-image-data 1 1))) |
47 |
- (ws (ps:new (-web-socket "ws://localhost:5000/ws")))) |
|
47 |
+ (ws (ps:new (-web-socket (+ "ws://" |
|
48 |
+ (ps:@ location host) |
|
49 |
+ ":5000/ws"))))) |
|
48 | 50 |
(ps:chain ws |
49 | 51 |
(add-event-listener |
50 | 52 |
"message" |