Skip to content

Commit 258d03a

Browse files
committed
feat: 🎸 export server-side code
1 parent 050ee20 commit 258d03a

File tree

4 files changed

+11
-3
lines changed

4 files changed

+11
-3
lines changed

src/server/http1/context.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@ import type {RpcMessageCodec} from '../../common/codec/types';
66
import type {WsServerConnection} from '../ws/server/WsServerConnection';
77
import type {ConnectionContext} from '../types';
88

9-
const rnd32BitUint = (): number => (Math.random() * 0xffffffff) >>> 0;
10-
119
export class Http1ConnectionContext<Meta = Record<string, unknown>> implements ConnectionContext<Meta> {
1210
constructor(
1311
public readonly req: http.IncomingMessage,

src/server/http1/index.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
export type * from './types';
2+
export * from './context';
3+
export * from './Http1Server';
4+
export * from './RpcServer';
5+
export * from './util';

src/server/index.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,4 @@
1-
export * from './uws';
1+
export * from './context';
2+
export * from './errors';
3+
export * from './ws';
4+
export * from './http1';

src/server/ws/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
export * from './codec';
2+
export {WsServerConnection, WsServerConnectionSocket} from './server/WsServerConnection';

0 commit comments

Comments
 (0)