# Get the connection error code from live stream

**URL:** <https://community.wowza.com/t/get-the-connection-error-code-from-live-stream/34972>\
**Category:** Wowza Developer Dojo\
**Tags:** wowza-streaming-server-java-api\
**Created:** [June 14, 2010, 8:14am UTC](https://community.wowza.com/t/get-the-connection-error-code-from-live-stream/34972 "2010-06-14T08:14:39Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![Richard\_Lanham](https://avatars.discourse-cdn.com/v4/letter/r/c68b51/32.png) [@Richard\_Lanham](https://community.wowza.com/u/Richard_Lanham)\
**Post date:** [June 15, 2010, 6:44pm UTC](https://community.wowza.com/t/get-the-connection-error-code-from-live-stream/34972/4 "2010-06-15T18:44:11Z")

</div>

You can use the IMediaStreamActionNotify2 interface to see normal events, onPublish and onUnPublish are event handlers for publishing client.

[http://community.wowza.com/t/-/242](http://community.wowza.com/t/-/242)

When I disable my internet connection from a computer on my lan that is publishing to a Wowza app on another computer, the onUnPublish event does not fire.

Richard

---

_[View the full topic](https://community.wowza.com/t/get-the-connection-error-code-from-live-stream/34972)._
