Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
const positionUpdateHubMethodName = 'position-update'
hubConnection.on(hubMethodNamepositionUpdateHubMethodName, (message: any) => {
        const position = JSON.parse(message) as Position;
        if (position) {
              ...
        }
      });

...