~/talk

Strongly Typed Multiplayer Game Programming

Talkat TSConf 2020 · on Friday, 2020-10-09· [typescript]
slides:none on file

Builds a working caveman multiplayer port of gorillaz.base using TypeScript, WebSockets and Socket IO and shows the actual code that makes socket messages type safe. Wraps the loose library types with generic wrappers so socket events carry concrete interfaces, uses type guards for entity variants, and shares a contract directory between client and server. Demo shows two players sending angle and velocity for throws, the system compiles and enforces types, and the wrapped API reduces scattering of changes.

AI-written summary · about

  1. 0:00Start
  2. 7:36OUR VANILLA JS SOCKET SERVER
  3. 13:39ON THE CLIENT
  4. 21:47GAME TYPE HIERARCHY
  5. 22:50TYPE EXTENSION
  6. 23:22TYPE GUARDS
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.