SpaceRace: Full-width TV field, death line scrolling, camera following leader, jump fix, path never fully blocked, player color on controller
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
import { io, Socket } from 'socket.io-client';
|
||||
import { ServerToTvEvents, TvToServerEvents, ExecutionResult, Ship, GameGridState } from '@spacerace/shared';
|
||||
|
||||
export type TvSocket = Socket<ServerToTvEvents, TvToServerEvents>;
|
||||
|
||||
export function connectTvSocket(): TvSocket {
|
||||
const socket: TvSocket = io('/', {
|
||||
transports: ['websocket', 'polling'],
|
||||
});
|
||||
return socket;
|
||||
}
|
||||
Reference in New Issue
Block a user