func (s *Socket) placeOrder(p Payload) {
	payload := p.(map[string]interface{})["order"].(map[string]interface{})
	o := &Order{}
	o.Decode(payload)

	o.events = s.events
	if err := s.server.engine.AddOrder(o); err != nil {
		log.Printf("Error: Failed processing order: %v", err)
	}
}
// placeOrder decodes orders and then passes it to the engine object
placeOrder decodes orders and then passes it to the engine object
// placeOrder decodes orders and then passes it to the engine object
func (s *Socket) placeOrder(p Payload) {
	payload := p.(map[string]interface{})["order"].(map[string]interface{})
	o := &Order{}
	o.Decode(payload)
	o.events = s.events
	if err := s.server.engine.AddOrder(o); err != nil {
		log.Printf("Error: Failed processing order: %v", err)
	}
}
func ( s * Socket ) placeOrder ( p Payload ) { payload := p . ( map [ string ] interface { } ) [ " " ] . ( map [ string ] interface { } ) o := & Order { } o . Decode ( payload ) o . events = s . events if err := s . server . engine . AddOrder ( o ) ; err != nil { log . Printf ( " " , err ) } }
placeOrder decodes orders and then passes it to the engine object
placeOrder decodes orders and then passes it to the engine object