@@ -46,15 +46,15 @@ func newStream(streamID uint32, conn *Conn) *Stream {
46
46
}
47
47
48
48
func (s * Stream ) WriteWinAckSize (chunkStreamID int , timestamp uint32 , msg * message.WinAckSize ) error {
49
- return s .write (chunkStreamID , timestamp , msg )
49
+ return s .Write (chunkStreamID , timestamp , msg )
50
50
}
51
51
52
52
func (s * Stream ) WriteSetPeerBandwidth (chunkStreamID int , timestamp uint32 , msg * message.SetPeerBandwidth ) error {
53
- return s .write (chunkStreamID , timestamp , msg )
53
+ return s .Write (chunkStreamID , timestamp , msg )
54
54
}
55
55
56
56
func (s * Stream ) WriteUserCtrl (chunkStreamID int , timestamp uint32 , msg * message.UserCtrl ) error {
57
- return s .write (chunkStreamID , timestamp , msg )
57
+ return s .Write (chunkStreamID , timestamp , msg )
58
58
}
59
59
60
60
func (s * Stream ) Connect (
@@ -249,7 +249,7 @@ func (s *Stream) writeCommandMessage(
249
249
return err
250
250
}
251
251
252
- return s .write (chunkStreamID , timestamp , & message.CommandMessage {
252
+ return s .Write (chunkStreamID , timestamp , & message.CommandMessage {
253
253
CommandName : commandName ,
254
254
TransactionID : transactionID ,
255
255
Encoding : s .encTy ,
@@ -269,14 +269,14 @@ func (s *Stream) WriteDataMessage(
269
269
return err
270
270
}
271
271
272
- return s .write (chunkStreamID , timestamp , & message.DataMessage {
272
+ return s .Write (chunkStreamID , timestamp , & message.DataMessage {
273
273
Name : name ,
274
274
Encoding : message .EncodingTypeAMF0 ,
275
275
Body : buf ,
276
276
})
277
277
}
278
278
279
- func (s * Stream ) write (chunkStreamID int , timestamp uint32 , msg message.Message ) error {
279
+ func (s * Stream ) Write (chunkStreamID int , timestamp uint32 , msg message.Message ) error {
280
280
ctx , cancel := context .WithTimeout (context .Background (), 5 * time .Second ) // TODO: Fix 5s
281
281
defer cancel ()
282
282
0 commit comments