UNPKG
it-ws
Version:
latest (6.1.5)
6.1.5
6.1.4
6.1.3
6.1.2
6.1.1
6.1.0
6.0.5
6.0.4
6.0.3
6.0.2
6.0.1
6.0.0
5.0.6
5.0.5
5.0.4
5.0.3
5.0.2
5.0.1
5.0.0
4.0.0
3.0.2
3.0.1
3.0.0
2.1.0
2.0.0
1.0.0
Simple async iterables for websocket client connections
github.com/alanshaw/it-ws
alanshaw/it-ws
it-ws
/
src
/
server.browser.ts
6 lines
(4 loc)
•
202 B
text/typescript
View Raw
1
2
3
4
5
6
import
type {
ServerOptions
,
WebSocketServer
}
from
'./server.js'
export
function
createServer
(
opts?: ServerOptions
):
WebSocketServer
{
throw
new
Error
(
'WebSocket Servers cannot run in browsers'
) }