Fix typo.
Clear buffer on onopen event.
Add helper methods to Connection.
Add RemoteObject type.
Update example.