on master help sign in
fix table formatting
1e8dd59Tinnus Napbus
content/docs/userspace/http-api-guide.md+4−3
@@ -238,10 +238,11 @@ channel will be opened whenever you first send a poke or subscription request.
238`Urbit` class includes three optional callbacks that fire when the SSE
238`Urbit` class includes three optional callbacks that fire when the SSE
239connection state changes:
239connection state changes:
240
240
241−| Callback | Description |
241+| Callback | Description |
242+| --------------- | ------------------------------------------------------------------------------------------------------------------------- |
242−| `Urbit.onOpen` | Called when an SSE channel connection is successfully established. |
243+| `Urbit.onOpen` | Called when an SSE channel connection is successfully established. |
243| `Urbit.onRetry` | This is called whenever a reconnection attempt is made due to an interruption, for example if there are network problems. |
244| `Urbit.onRetry` | This is called whenever a reconnection attempt is made due to an interruption, for example if there are network problems. |
244−| `Urbit.onError` | This is called when there is an unrecoverable error, for example after enough reconnection attemps have failed. |
245+| `Urbit.onError` | This is called when there is an unrecoverable error, for example after enough reconnection attemps have failed. |
245
246
246As mentioned in the previous section, typically a channel will be opened and an
247As mentioned in the previous section, typically a channel will be opened and an
247SSE connection established after you first poke the ship or make a subscription
248SSE connection established after you first poke the ship or make a subscription