five-on-it / packages/protocol/src/social / parseChat
Function: parseChat()
parseChat(
text): {lines:object[];type:"chat"; } |undefined
Defined in: packages/protocol/src/social.ts:129
Parses a text frame as chat lines; undefined when it is not.
Parameters
text
string
Returns
{ lines: object[]; type: "chat"; } | undefined