Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
62 changes: 44 additions & 18 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "node-jet",
"version": "3.0.13",
"version": "3.0.16",
"description": "Jet Realtime Message Bus for the Web. Daemon and Peer implementation.",
"url": "https://github.com/hbm/node-jet",
"author": {
Expand Down
2 changes: 1 addition & 1 deletion src/1_socket/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* istanbul ignore file */
import { WebSocket as ws } from 'ws'
import { EventEmitter as ee } from 'node:events'
import { EventEmitter as ee } from 'events'
export const isNodeJs = typeof window === 'undefined'
export const isBrowser = typeof window !== 'undefined'

Expand Down
2 changes: 1 addition & 1 deletion src/1_socket/message-socket.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* istanbul ignore file */
import { Socket, connect } from 'node:net'
import { Socket, connect } from 'net'
import { EventEmitter } from './index.js'

/**
Expand Down
4 changes: 2 additions & 2 deletions src/1_socket/tcpserver.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
/* istanbul ignore file */
import { type Server, createServer } from 'node:net'
import { type Server, createServer } from 'net'
import { EventEmitter } from './index.js'
import MessageSocket from './message-socket.js'
import { Socket } from './socket.js'
import type { Socket as natSocket } from 'node:net'
import type { Socket as natSocket } from 'net'

export interface TCPServerConfig {
tcpPort?: number
Expand Down
2 changes: 1 addition & 1 deletion src/1_socket/wsserver.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/* istanbul ignore file */
import { EventEmitter, WebSocketImpl } from './index.js'
import { type WebSocket, WebSocketServer as WsServer } from 'ws'
import type { Server as HTTPServer } from 'node:http'
import type { Server as HTTPServer } from 'http'
import { Socket } from './socket.js'

export interface WebServerConfig {
Expand Down