Skip to content

Socket message structure#27

Draft
foolishsailor wants to merge 39 commits intoeumemic:masterfrom
foolishsailor:socketMessageStructure
Draft

Socket message structure#27
foolishsailor wants to merge 39 commits intoeumemic:masterfrom
foolishsailor:socketMessageStructure

Conversation

@foolishsailor
Copy link
Copy Markdown
Contributor

@foolishsailor foolishsailor commented Apr 23, 2023

*** DRAFT ***

This is a new propsed socket message structure

  • Abstracts logic out of socket object
  • Uses reducers and actions to process all message maintaining type safety
  • Breaks message into 3 categories: Command, State and Message
  • Only the commands are detailed here but a simple copy/paste to flesh out sekeltons for remainder

Have a look as this is the direction Im taking ai-lens and want to make as easy as possible to drop in a socket server module into a devs project and they can just pop in the business logic into the various exposed functions

note: this is built on top of the previous PR. For the purposes of this PR the only relevant changes are within the socket-server folder

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant